1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # Test CSRRx and CSRRxI instructions.
10 #include "riscv_test.h"
11 #include "test_macros.h"
16 # Make sure slli with shamt[4] set is legal.
17 TEST_CASE( 2, a0, 65536, li a0, 1; slli a0, a0, 16);
19 # Make sure slli with shamt[5] set is not legal.
20 TEST_CASE( 3, x0, 1, .word 0x02051513); # slli a0, a0, 32
25 # Trapping on test 3 is good.
26 # Note that since the test didn't complete, TESTNUM is smaller by 1.
30 # Make sure CAUSE indicates an illegal instructino.
32 li t1, CAUSE_ILLEGAL_INSTRUCTION