Move dirty bit test to rv64si directory
[riscv-tests.git] / isa / rv64um / remu.S
1 # See LICENSE for license details.
2
3 #*****************************************************************************
4 # remu.S
5 #-----------------------------------------------------------------------------
6 #
7 # Test remu instruction.
8 #
9
10 #include "riscv_test.h"
11 #include "test_macros.h"
12
13 RVTEST_RV64U
14 RVTEST_CODE_BEGIN
15
16 #-------------------------------------------------------------
17 # Arithmetic tests
18 #-------------------------------------------------------------
19
20 TEST_RR_OP( 2, remu, 2, 20, 6 );
21 TEST_RR_OP( 3, remu, 2, -20, 6 );
22 TEST_RR_OP( 4, remu, 20, 20, -6 );
23 TEST_RR_OP( 5, remu, -20, -20, -6 );
24
25 TEST_RR_OP( 6, remu, 0, -1<<63, 1 );
26 TEST_RR_OP( 7, remu, -1<<63, -1<<63, -1 );
27
28 TEST_RR_OP( 8, remu, -1<<63, -1<<63, 0 );
29 TEST_RR_OP( 9, remu, 1, 1, 0 );
30 TEST_RR_OP(10, remu, 0, 0, 0 );
31
32 TEST_PASSFAIL
33
34 RVTEST_CODE_END
35
36 .data
37 RVTEST_DATA_BEGIN
38
39 TEST_DATA
40
41 RVTEST_DATA_END