1 #*****************************************************************************
3 #-----------------------------------------------------------------------------
5 # Test CSRRx and CSRRxI instructions.
8 #include "riscv_test.h"
9 #include "test_macros.h"
17 # Make sure slli with shamt[4] set is legal.
18 TEST_CASE( 2, a0, 65536, li a0, 1; slli a0, a0, 16);
20 # Make sure slli with shamt[4] set is not legal.
21 TEST_CASE( 3, x0, 1, slli a0, a0, 32);
26 # Trapping on test 3 is good.
27 # Note that since the test didn't complete, TESTNUM is smaller by 1.
31 # Make sure CAUSE indicates an illegal instructino.
33 li t1, CAUSE_ILLEGAL_INSTRUCTION