X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=operators%2Foperators.t.cc;h=24b20da9e9805917652e62e014a9476035f9c30d;hb=1e33219bc00f9d93832ce7d057cdbc280c512e9c;hp=75bd379a1c91b37ea4d513f66a8004116306999b;hpb=76741f66364651749e7dfbd857df335656a30dee;p=riscv-isa-sim.git diff --git a/operators/operators.t.cc b/operators/operators.t.cc index 75bd379..24b20da 100644 --- a/operators/operators.t.cc +++ b/operators/operators.t.cc @@ -1,6 +1,19 @@ #include +#include "operators.h" +#include "operators_test.h" +#include "decode.h" + int main(int argc, char *argv[]) { - printf("hello\n"); + /*op2 o(0xfff0); + uint32_t p = 0xfffffef; + o = o + p; + */ + opcvt cvt(u64_u64_cvt, u64_u64_cvt, sext32); + uint64_t o = 0xff00; + uint64_t s1 = 0x1ff01; + uint64_t s2 = 0x2ff01; + cvt.add(o, s1, s2); + printf("hello %lx\n", o); }