7210eee9ddd87fd32fbcdfb560a0c31ff8181eb2
[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
7 float %f1(float %a, float %b) {
8 entry:
9         %tmp = add float %a, %b
10         ret float %tmp
11 }
12
13 double %f2(double %a, double %b) {
14 entry:
15         %tmp = add double %a, %b
16         ret double %tmp
17 }
18
19 float %f3(float %a, float %b) {
20 entry:
21         %tmp = mul float %a, %b
22         ret float %tmp
23 }
24
25 double %f4(double %a, double %b) {
26 entry:
27         %tmp = mul double %a, %b
28         ret double %tmp
29 }
30
31 float %f5(float %a, float %b) {
32 entry:
33         %tmp = sub float %a, %b
34         ret float %tmp
35 }
36
37 double %f6(double %a, double %b) {
38 entry:
39         %tmp = sub double %a, %b
40         ret double %tmp
41 }