1 #include "riscv_test.h"
2 #include "sv_test_macros.h"
4 RVTEST_RV64U # Define TVM used by program.
9 RVTEST_CODE_BEGIN # Start of test code.
11 SV_LD_DATA( x2, testdata , 0)
12 SV_LD_DATA( x3, testdata+8 , 0)
13 SV_LD_DATA( x4, testdata+16, 0)
14 SV_LD_DATA( x5, testdata+24, 0)
17 SET_SV_CSR(1, 3, 0, 3, 1, 0)
26 TEST_SV_IMM(x2, 1001) # should not be modified
29 TEST_SV_IMM(x5, 1002) # should not be modified
31 RVTEST_PASS # Signal success.
34 RVTEST_CODE_END # End of test code.
37 # This section is optional, and this data is NOT saved in the output.
46 # Output data section.
47 RVTEST_DATA_BEGIN # Start of test output data region.
53 RVTEST_DATA_END # End of test output data region.