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