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