add rv64ud sv fadd test, shows flaw in loop for 3-arg operands
[riscv-tests.git] / isa / macros / simplev / sv_test_macros.h
index 97bb950816249fde85fd3eff7892f3479196a271..23feaa1c287a3372aa7ad1ba049b3289dda37797 100644 (file)
         la      x1, from; \
         lw      reg, offs(x1)
 
+#define SV_FLD_DATA( reg, from, offs ) \
+        la      x1, from; \
+        fld     reg, offs(x1)
+
 #define TEST_SV_IMM( reg, imm ) \
         li      x1, imm; \
         bne     reg, x1, fail
+
+#define TEST_SV_FD( flags, freg, from, offs ) \
+        fsflags x2, x0; \
+        li      x1, flags; \
+        bne     x2, x1, fail; \
+        la      x1, from; \
+        ld      x1, offs(x1); \
+        fmv.x.d x2, freg; \
+        bne     x2, x1, fail