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.
19 SET_SV_2CSRS( SV_REG_CSR(1, 3, 0, 3, 1),
20 SV_REG_CSR(1, 6, 0, 6, 1) )
22 SV_PRED_CSR(1, 3, 0, 0, 13, 0), \
23 SV_PRED_CSR(1, 6, 0, 0, 14, 0) );\
42 RVTEST_PASS # Signal success.
45 RVTEST_CODE_END # End of test code.
48 # This section is optional, and this data is NOT saved in the output.
57 # Output data section.
58 RVTEST_DATA_BEGIN # Start of test output data region.
64 RVTEST_DATA_END # End of test output data region.