divu.S revision 12771
12207SN/A# See LICENSE for license details. 22207SN/A 32207SN/A#***************************************************************************** 42207SN/A# divu.S 52207SN/A#----------------------------------------------------------------------------- 62207SN/A# 72207SN/A# Test divu instruction. 82207SN/A# 92207SN/A 102207SN/A#include "riscv_test.h" 112207SN/A#include "test_macros.h" 122207SN/A 132207SN/ARVTEST_RV64U 142207SN/ARVTEST_CODE_BEGIN 152207SN/A 162207SN/A #------------------------------------------------------------- 172207SN/A # Arithmetic tests 182207SN/A #------------------------------------------------------------- 192207SN/A 202207SN/A TEST_RR_OP( 2, divu, 3, 20, 6 ); 212207SN/A TEST_RR_OP( 3, divu, 3074457345618258599, -20, 6 ); 222207SN/A TEST_RR_OP( 4, divu, 0, 20, -6 ); 232207SN/A TEST_RR_OP( 5, divu, 0, -20, -6 ); 242207SN/A 252207SN/A TEST_RR_OP( 6, divu, -1<<63, -1<<63, 1 ); 262207SN/A TEST_RR_OP( 7, divu, 0, -1<<63, -1 ); 272665Ssaidi@eecs.umich.edu 282665Ssaidi@eecs.umich.edu TEST_RR_OP( 8, divu, -1, -1<<63, 0 ); 292665Ssaidi@eecs.umich.edu TEST_RR_OP( 9, divu, -1, 1, 0 ); 302207SN/A TEST_RR_OP(10, divu, -1, 0, 0 ); 312207SN/A 322972Sgblack@eecs.umich.edu TEST_PASSFAIL 332207SN/A 342454SN/ARVTEST_CODE_END 352454SN/A 362680Sktlim@umich.edu .data 372474SN/ARVTEST_DATA_BEGIN 382207SN/A 392207SN/A TEST_DATA 402474SN/A 412474SN/ARVTEST_DATA_END 422474SN/A