aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/mips64r5900-elf/f-cvt.s
blob: 8853280bb5247810a5094917bdaecba795f77260 (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
28
29
30
31
32
33
34
.include "t-macros.i"

	start

test_cvt1:	
	clearfcsr
	loadfp $f1 4.0
	cvt.s.w $f2, $f1
	mfc1 $10, $2
	check10 0 4

test_cvt2:	
	clearfcsr
	loadfp $f1 4.0
	neg.s $f1, $f1
	cvt.s.w $f2, $f1
	mfc1 $10, $2
	check10 0 , -4

test_cvt3:
	clearfcsr
	li	$4, 4
	mtc1	$4, $4
	cvt.w.s $f3, $f4
	checkfp 0 $f3 4.0

test_cvt4:
	clearfcsr
	li	$4, -4
	mtc1	$4, $4
	cvt.w.s $f3, $f4
	checkfp 0 $f3 , -4.0

	exit0