For multiply->add, loose underflow status, overflow when acc is
[deliverable/binutils-gdb.git] / sim / testsuite / mips64r5900-elf / f-adda.s
1 .include "t-macros.i"
2
3 start
4
5 test_adda1:
6 clearfcsr
7 loadfp $f1 4.0
8 loadfp $f2 0.1
9 adda.s $f1, $f2
10 checkacc 0 4.1
11
12 test_add2:
13 clearfcsr
14 loadfp $f1 , -4.0
15 loadfp $f2 8.0
16 adda.s $f2, $f1
17 checkacc 0 4.0
18
19 test_add3:
20 clearfcsr
21 loadfpmax $f1
22 loadfpmax $f2
23 adda.s $f2, $f1
24 checkaccmax FCSR_O
25
26 test_add4:
27 clearfcsr
28 loadfpmax $f1
29 neg.s $f1, $f1
30 loadfpmax $f2
31 neg.s $f2, $f2
32 adda.s $f1, $f2
33 checkfcsr FCSR_O
34 clearfcsr
35 msub.s $f3, $f0, $f0
36 neg.s $f3, $f3
37 clearfcsr
38 checkfpmax 0 $f3
39
40 exit0
This page took 0.040706 seconds and 5 git commands to generate.