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 # CSR redirects SP (x2) to x28
35 c.swsp a2, 0(sp); # not SP, actually x28!
63 SET_SV_2CSRS( SV_REG_CSR(1, 12, 0, 12, 1),
64 SV_REG_CSR(1, 2, 0, 2, 1) )
95 RVTEST_PASS # Signal success.
99 RVTEST_CODE_END # End of test code.