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

	start

test_madd1:	
	clearfcsr
	loadacc 1.0
	loadfp $f1 2.0
	loadfp $f2 4.0
	madd.s $f3, $f2, $f1
	checkfp 0 $f3 9.0

test_madd2:	
	clearfcsr
	loadacc 4.0
	loadfp $f1 2.0
	loadfp $f2 2.0
	madd.s $f3, $f2, $f1
	checkfp 0 $f3 8.0

	exit0