add sv sraw elwidth unit test
[riscv-tests.git] / isa / rv64ui / sv_addi_redirect.S
index 61e92842147e295fc91295caa98997e06a3d9cb3..aeb404d43dc94f60d2cd06d00908b15e0258197f 100644 (file)
@@ -20,14 +20,14 @@ RVTEST_CODE_BEGIN   # Start of test code.
         SV_LD_DATA( x5, testdata+24, 0)
 
         SET_SV_MVL(2)
-        SET_SV_CSR(1, 16, 0, 3, 1, 0)
+        SET_SV_CSR(1, 16, 0, 3, 1)
         SET_SV_VL(2)
 
         addi    x16, x16, 1
 
         CLR_SV_CSRS()
-        SET_SV_VL(0)
-        SET_SV_MVL(0)
+        SET_SV_VL(1)
+        SET_SV_MVL(1)
 
         TEST_SV_IMM(x2, 1001) # should not be modified
         TEST_SV_IMM(x3, 42)