1 #include "riscv_test.h"
2 #include "sv_test_macros.h"
7 # SV test: vector-vector fadd
9 # sets up x3 and x4 with data, sets VL to 2, and carries out
10 # an "add 1 to x3". which actually means "add 1 to x3 *AND* add 1 to x4"
13 RVTEST_CODE_BEGIN # Start of test code.
15 SV_FLD_DATA( f1, testdata , 0)
16 SV_FLD_DATA( f2, testdata+8 , 0)
17 SV_FLD_DATA( f3, testdata+16, 0)
18 SV_FLD_DATA( f4, testdata+24, 0)
19 SV_FLD_DATA( f5, testdata+32, 0)
20 SV_FLD_DATA( f6, testdata+40, 0)
21 SV_FLD_DATA( f7, testdata+48, 0)
22 SV_FLD_DATA( f8, testdata+56, 0)
25 SET_SV_2CSRS( SV_REG_CSR(0, 2, 0, 2, 1),
26 SV_REG_CSR(0, 6, 0, 6, 1) )
35 TEST_SV_FD(0, f1, testdata+64, 0)
36 TEST_SV_FD(0, f2, testdata+72, 0)
37 TEST_SV_FD(0, f3, testdata+80, 0)
38 TEST_SV_FD(0, f4, testdata+88, 0)
40 RVTEST_PASS # Signal success.
43 RVTEST_CODE_END # End of test code.
46 # This section is optional, and this data is NOT saved in the output.
63 # Output data section.
64 RVTEST_DATA_BEGIN # Start of test output data region.
70 RVTEST_DATA_END # End of test output data region.