1 # See LICENSE for license details.
3 #*****************************************************************************
5 #-----------------------------------------------------------------------------
7 # Test remw instruction.
10 #include "riscv_test.h"
11 #include "test_macros.h"
16 #-------------------------------------------------------------
18 #-------------------------------------------------------------
20 TEST_RR_OP( 2, remw, 2, 20, 6 );
21 TEST_RR_OP( 3, remw, -2, -20, 6 );
22 TEST_RR_OP( 4, remw, 2, 20, -6 );
23 TEST_RR_OP( 5, remw, -2, -20, -6 );
25 TEST_RR_OP( 6, remw, 0, -1<<31, 1 );
26 TEST_RR_OP( 7, remw, 0, -1<<31, -1 );
28 TEST_RR_OP( 8, remw, -1<<31, -1<<31, 0 );
29 TEST_RR_OP( 9, remw, 1, 1, 0 );
30 TEST_RR_OP(10, remw, 0, 0, 0 );
31 TEST_RR_OP(11, remw, 0xfffffffffffff897,0xfffffffffffff897, 0 );