blob: 0cb3e7c306d437fd24d0960fc6a3b03923eee45d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
.include "t-macros.i"
start
test_div:
load $7 0xdeadbeefdeadbeef 0xdeadbeef80000000
load $8 0xdeadbeefdeadbeef 0xdeadbeefffffffff
# NB: That $0 is needed!
div $0, $7,$8
checkHI 0x0000000000000000 0x0000000000000000
checkLO 0x0000000000000000 0xffffffff80000000
test_div_0:
load $7 0xdeadbeefdeadbeef 0xdeadbeef80000000
load $8 0xdeadbeefdeadbeef 0xdeadbeef00000000
# NB: That $0 is needed!
div $0, $7,$8
# don't crash!
checkHI 0x0000000000000000 0x0000000000000000
checkLO 0x0000000000000000 0xffffffff80000000
exit0
|