]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - sim/testsuite/mips64r5900-elf/f-cvt.s
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / sim / testsuite / mips64r5900-elf / f-cvt.s
1 .include "t-macros.i"
2
3 start
4
5 test_cvt1:
6 clearfcsr
7 loadfp $f1 4.0
8 cvt.s.w $f2, $f1
9 mfc1 $10, $2
10 check10 0 4
11
12 test_cvt2:
13 clearfcsr
14 loadfp $f1 4.0
15 neg.s $f1, $f1
16 cvt.s.w $f2, $f1
17 mfc1 $10, $2
18 check10 0 , -4
19
20 test_cvt3:
21 clearfcsr
22 li $4, 4
23 mtc1 $4, $4
24 cvt.w.s $f3, $f4
25 checkfp 0 $f3 4.0
26
27 test_cvt4:
28 clearfcsr
29 li $4, -4
30 mtc1 $4, $4
31 cvt.w.s $f3, $f4
32 checkfp 0 $f3 , -4.0
33
34 exit0