add FNEGS and FNEGD
[oota-llvm.git] / test / CodeGen / ARM / fparith.ll
1 ; RUN: llvm-as < %s | llc -march=arm &&
2 ; RUN: llvm-as < %s | llc -march=arm | grep fadds &&
3 ; RUN: llvm-as < %s | llc -march=arm | grep faddd &&
4 ; RUN: llvm-as < %s | llc -march=arm | grep fmuls &&
5 ; RUN: llvm-as < %s | llc -march=arm | grep fmuld &&
6 ; RUN: llvm-as < %s | llc -march=arm | grep fnegs &&
7 ; RUN: llvm-as < %s | llc -march=arm | grep fnegd
8
9 float %f1(float %a, float %b) {
10 entry:
11         %tmp = add float %a, %b
12         ret float %tmp
13 }
14
15 double %f2(double %a, double %b) {
16 entry:
17         %tmp = add double %a, %b
18         ret double %tmp
19 }
20
21 float %f3(float %a, float %b) {
22 entry:
23         %tmp = mul float %a, %b
24         ret float %tmp
25 }
26
27 double %f4(double %a, double %b) {
28 entry:
29         %tmp = mul double %a, %b
30         ret double %tmp
31 }
32
33 float %f5(float %a, float %b) {
34 entry:
35         %tmp = sub float %a, %b
36         ret float %tmp
37 }
38
39 double %f6(double %a, double %b) {
40 entry:
41         %tmp = sub double %a, %b
42         ret double %tmp
43 }
44
45 float %f7(float %a) {
46 entry:
47         %tmp1 = sub float -0.000000e+00, %a
48         ret float %tmp1
49 }
50
51 double %f8(double %a) {
52 entry:
53         %tmp1 = sub double -0.000000e+00, %a
54         ret double %tmp1
55 }