From: Andrew Waterman Date: Wed, 17 May 2017 22:26:27 +0000 (-0700) Subject: Manually assemble bad shift amount, since assembler rejects X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=019192fead976af698d16b090d75be2dc7da053e;p=riscv-tests.git Manually assemble bad shift amount, since assembler rejects Resolves #51 --- diff --git a/isa/rv32mi/shamt.S b/isa/rv32mi/shamt.S index 2c92412..aa136b5 100644 --- a/isa/rv32mi/shamt.S +++ b/isa/rv32mi/shamt.S @@ -17,7 +17,7 @@ RVTEST_CODE_BEGIN TEST_CASE( 2, a0, 65536, li a0, 1; slli a0, a0, 16); # Make sure slli with shamt[5] set is not legal. - TEST_CASE( 3, x0, 1, slli a0, a0, 32); + TEST_CASE( 3, x0, 1, .word 0x02051513); # slli a0, a0, 32 TEST_PASSFAIL