X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=isa%2Frv64ui%2Fslli.S;h=b5341ad75eb9855a800a736c6a9aff5251398aa0;hb=d63a6a4ad0057614d1c838c1b506b6fa0032de01;hp=aeb5ce9768de5d415da269385839fc4deca650dc;hpb=81ad66f25ce4c15180e558696961bd8eaf967fea;p=riscv-tests.git diff --git a/isa/rv64ui/slli.S b/isa/rv64ui/slli.S index aeb5ce9..b5341ad 100644 --- a/isa/rv64ui/slli.S +++ b/isa/rv64ui/slli.S @@ -1,3 +1,5 @@ +# See LICENSE for license details. + #***************************************************************************** # slli.S #----------------------------------------------------------------------------- @@ -33,6 +35,12 @@ RVTEST_CODE_BEGIN TEST_IMM_OP( 15, slli, 0x0000084848484000, 0x0000000021212121, 14 ); TEST_IMM_OP( 16, slli, 0x1090909080000000, 0x0000000021212121, 31 ); +#if __riscv_xlen == 64 + TEST_IMM_OP( 50, slli, 0x8000000000000000, 0x0000000000000001, 63 ); + TEST_IMM_OP( 51, slli, 0xffffff8000000000, 0xffffffffffffffff, 39 ); + TEST_IMM_OP( 52, slli, 0x0909080000000000, 0x0000000021212121, 43 ); +#endif + #------------------------------------------------------------- # Source/Destination tests #------------------------------------------------------------- @@ -51,8 +59,8 @@ RVTEST_CODE_BEGIN TEST_IMM_SRC1_BYPASS( 22, 1, slli, 0x0000000000004000, 0x0000000000000001, 14 ); TEST_IMM_SRC1_BYPASS( 23, 2, slli, 0x0000000080000000, 0x0000000000000001, 31 ); - TEST_IMM_ZEROSRC1( 24, slli, 0, 32 ); - TEST_IMM_ZERODEST( 25, slli, 33, 50 ); + TEST_IMM_ZEROSRC1( 24, slli, 0, 31 ); + TEST_IMM_ZERODEST( 25, slli, 33, 20 ); TEST_PASSFAIL