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_FLW_DATA( f4, testdata+0 , 0)
16 SV_FLW_DATA( f5, testdata+4, 0)
17 SV_FLW_DATA( f6, testdata+8, 0)
18 SV_FLW_DATA( f7, testdata+12, 0)
21 SET_SV_3CSRS( SV_REG_CSR(0, 2, 0, 2, 1),
22 SV_REG_CSR(0, 4, 0, 4, 1),
23 SV_REG_CSR(0, 6, 0, 6, 1) )
32 TEST_SV_FW(0, f2, answer+0, 0)
33 TEST_SV_FW(0, f3, answer+4, 0)
35 RVTEST_PASS # Signal success.
38 RVTEST_CODE_END # End of test code.
41 # This section is optional, and this data is NOT saved in the output.
55 # Output data section.
56 RVTEST_DATA_BEGIN # Start of test output data region.
62 RVTEST_DATA_END # End of test output data region.