add sv c_lwsp unit test
[riscv-tests.git] / isa / macros / simplev / sv_test_macros.h
index 421d0c3b66fe984555dfdcc8cbaea11ff4652817..ddf951aab96c6ed422683ff7b1602868437e8cde 100644 (file)
@@ -35,8 +35,8 @@
         fld     reg, offs(x1)
 
 #define TEST_SV_IMM( reg, imm ) \
-        li      x1, imm; \
-        bne     reg, x1, fail
+        li      t6, imm; \
+        bne     reg, t6, fail
 
 #define TEST_SV_FD( flags, freg, from, offs ) \
         fsflags x2, x0; \