1 #*****************************************************************************
3 #-----------------------------------------------------------------------------
5 # Test remuw instruction.
8 #include "riscv_test.h"
9 #include "test_macros.h"
14 #-------------------------------------------------------------
16 #-------------------------------------------------------------
18 TEST_RR_OP( 2, remuw, 2, 20, 6 );
19 TEST_RR_OP( 3, remuw, 2, -20, 6 );
20 TEST_RR_OP( 4, remuw, 20, 20, -6 );
21 TEST_RR_OP( 5, remuw, -20, -20, -6 );
23 TEST_RR_OP( 6, remuw, 0, -1<<31, 1 );
24 TEST_RR_OP( 7, remuw, -1<<31, -1<<31, -1 );
26 TEST_RR_OP( 8, remuw, -1<<31, -1<<31, 0 );
27 TEST_RR_OP( 9, remuw, 1, 1, 0 );
28 TEST_RR_OP(10, remuw, 0, 0, 0 );