]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/testsuite/mips64r5900-elf/t-div.s
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / sim / testsuite / mips64r5900-elf / t-div.s
CommitLineData
3e8c1f2e
AC
1.include "t-macros.i"
2
3 start
4
5test_div:
6 load $7 0xdeadbeefdeadbeef 0xdeadbeef80000000
7 load $8 0xdeadbeefdeadbeef 0xdeadbeefffffffff
8 # NB: That $0 is needed!
9 div $0, $7,$8
10 checkHI 0x0000000000000000 0x0000000000000000
11 checkLO 0x0000000000000000 0xffffffff80000000
12
13test_div_0:
14 load $7 0xdeadbeefdeadbeef 0xdeadbeef80000000
15 load $8 0xdeadbeefdeadbeef 0xdeadbeef00000000
16 # NB: That $0 is needed!
17 div $0, $7,$8
18 # don't crash!
19 checkHI 0x0000000000000000 0x0000000000000000
20 checkLO 0x0000000000000000 0xffffffff80000000
21
22 exit0