aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/mips64r5900-elf/t-dadd.s
blob: 7f1c41095f6fae82db2e6b1ef0eb22aa61a61fb3 (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

	# don't overflow

test_dadd:

	load $7 0xdeadbeefdeadbeef 0x7fffffffffffffff
	load $8 0xdeadbeefdeadbeef 0xffffffffffffffff
        dadd $10, $7, $8
        check10 0x0000000000000000 0x7ffffffffffffffe

test_dadd_1:
	load $7 0xdeadbeefdeadbeef 0x8000000000000000
	load $8 0xdeadbeefdeadbeef 0x7fffffffffffffff
        dadd $10, $7, $8
        check10 0x0000000000000000 0xffffffffffffffff

	exit0