21 lines
523 B
ArmAsm
21 lines
523 B
ArmAsm
|
.include "t-macros.i"
|
||
|
|
||
|
start
|
||
|
|
||
|
test_div:
|
||
|
load $7 0xdeadbeefdeadbeef 0xdeadbeef80000000
|
||
|
load $8 0xdeadbeefdeadbeef 0xdeadbeefffffffff
|
||
|
divu1 $7,$8
|
||
|
checkHI 0xffffffff80000000 0x0000000000000000
|
||
|
checkLO 0x0000000000000000 0x0000000000000000
|
||
|
|
||
|
test_div_0:
|
||
|
load $7 0xdeadbeefdeadbeef 0xdeadbeef80000000
|
||
|
load $8 0xdeadbeefdeadbeef 0xdeadbeef00000000
|
||
|
divu1 $7,$8
|
||
|
# don't crash!
|
||
|
checkHI 0x0000000000000000 0x0000000000000000
|
||
|
checkLO 0xffffffff80000000 0x0000000000000000
|
||
|
|
||
|
exit0
|