aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/mips64r5900-elf/t-div1.s
blob: 325b8b5e8391445f9130b28677a4166e9fc31fe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.include "t-macros.i"

	start

test_div:
	load $7 0xdeadbeefdeadbeef 0xdeadbeef80000000
	load $8 0xdeadbeefdeadbeef 0xdeadbeefffffffff
        div1 $7,$8
        checkHI 0x0000000000000000 0x0000000000000000
        checkLO 0xffffffff80000000 0x0000000000000000

test_div_0:
	load $7 0xdeadbeefdeadbeef 0xdeadbeef80000000
	load $8 0xdeadbeefdeadbeef 0xdeadbeef00000000
        div1 $7,$8
	# don't crash!
        checkHI 0x0000000000000000 0x0000000000000000
        checkLO 0xffffffff80000000 0x0000000000000000
	
	exit0