1 #include "riscv_test.h"
2 #include "sv_test_macros.h"
4 RVTEST_RV64U # Define TVM used by program.
7 # SV test: vector-vector add different rd and rs1
9 # sets up x6 and x7 with data, sets VL to 2, and carries out
10 # an "x3 = 1 + x6". which actually means "x3 = 1 + x6 *AND* x4 = 1 + x7"
13 RVTEST_CODE_BEGIN # Start of test code.
23 SET_SV_2CSRS( SV_REG_CSR(1, 10, 0, 3, 1),
24 SV_REG_CSR(1, 0 , 0, 0, 1) )
26 SV_PRED_CSR(1, 10, 0, 0, 13, 0), \
27 SV_PRED_CSR(1, 0, 0, 0, 14, 0) );\
51 RVTEST_PASS # Signal success.
54 RVTEST_CODE_END # End of test code.
57 # This section is optional, and this data is NOT saved in the output.
66 # Output data section.
67 RVTEST_DATA_BEGIN # Start of test output data region.
73 RVTEST_DATA_END # End of test output data region.