old-cross-binutils/sim/testsuite/mips64vr5900el-elf/t-pdivuw.s
1997-07-28 10:52:39 +00:00

32 lines
1,006 B
ArmAsm

.include "t-macros.i"
start
test_pdivuw:
load $7 0x000000007fffffff 0xffffffff80000000
load $8 0xffffffffffffffff 0xffffffffffffffff
pdivuw $7,$8 #Expectation:
checkHI 0x000000007fffffff 0xffffffff80000000
checkLO 0x0000000000000000 0x0000000000000000
test_pdivuw1:
load $7 0x7fffffff00000000 0x80000000ffffffff
load $8 0xffffffffffffffff 0xffffffffffffffff
pdivuw $7,$8 #Expectation:
checkHI 0x0000000000000000 0x0000000000000000
checkLO 0x0000000000000000 0x0000000000000001
test_pdivuw2:
load $7 0x0000000000001000 0x0000000000001fff
load $8 0x0000000000000100 0x0000000000000100
pdivuw $7,$8 #Expectation:
checkHI 0x0000000000000000 0x00000000000000ff
checkLO 0x0000000000000010 0x000000000000001f
test_pdivuw_0:
load $7 0x000000007fffffff 0xffffffff80000000
load $8 0x0000000000000000 0x0000000000000000
pdivuw $7,$8 #Expectation:
# don't crash!
exit0