1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # Test RVC corner cases.
10 #include "riscv_test.h"
11 #include "sv_test_macros.h"
25 SET_SV_2CSRS( SV_REG_CSR(1, 12, 0, 12, 1),
26 SV_REG_CSR(1, 2, 0, 28, 1) )
29 # store addr of data in x28 because CSR redirects x2 to x28
30 # and c.lwsp is an element-offset (if isvec=true that is)
36 c.lwsp a2, 0(sp); # SP is actually redirected to x28!
59 SET_SV_2CSRS( SV_REG_CSR(1, 12, 0, 12, 1),
60 SV_REG_CSR(1, 2, 0, 2, 1) )
86 RVTEST_PASS # Signal success.
90 RVTEST_CODE_END # End of test code.