aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/mips64r5900-elf/f-div.s
blob: dfdd344f0bec9d1050fe45275c22ce4c2b219c6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.include "t-macros.i"

	start

test_div1:	
	clearfcsr
	loadfp $f1 2.0
	loadfp $f2 4.0
	div.s $f3, $f2, $f1
	checkfp 0 $f3 2.0

	
test_div2:
	clearfcsr
	loadfp $f1 0.0
	loadfp $f2 0.0
	div.s $f3, $f2, $f1
	checkfpmax FCSR_I $f3

test_div3:
	clearfcsr
	loadfp $f1 0.0
	loadfp $f2 1.0
	div.s $f3, $f2, $f1
	checkfpmax FCSR_D $f3
	
	exit0