Convert tests using "| wc -l | grep ..." to use the count script.
[oota-llvm.git] / test / CodeGen / ARM / fp.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 > %t
2 ; RUN: grep fmsr %t | count 4
3 ; RUN: grep fsitos %t
4 ; RUN: grep fmrs %t | count 2
5 ; RUN: grep fsitod %t
6 ; RUN: grep fmrrd %t | count 5
7 ; RUN: grep fmdrr %t | count 2
8 ; RUN: grep fldd %t
9 ; RUN: grep fuitod %t
10 ; RUN: grep fuitos %t
11 ; RUN: grep 1065353216 %t
12
13 float %f(int %a) {
14 entry:
15         %tmp = cast int %a to float             ; <float> [#uses=1]
16         ret float %tmp
17 }
18
19 double %g(int %a) {
20 entry:
21         %tmp = cast int %a to double            ; <double> [#uses=1]
22         ret double %tmp
23 }
24
25 double %uint_to_double(uint %a) {
26 entry:
27         %tmp = cast uint %a to double
28         ret double %tmp
29 }
30
31 float %uint_to_float(uint %a) {
32 entry:
33         %tmp = cast uint %a to float
34         ret float %tmp
35 }
36
37
38 double %h(double* %v) {
39 entry:
40         %tmp = load double* %v          ; <double> [#uses=1]
41         ret double %tmp
42 }
43
44 float %h2() {
45 entry:
46         ret float 1.000000e+00
47 }
48
49 double %f2(double %a) {
50         ret double %a
51 }
52
53 void %f3() {
54 entry:
55         %tmp = call double %f5()                ; <double> [#uses=1]
56         call void %f4(double %tmp )
57         ret void
58 }
59
60 declare void %f4(double)
61 declare double %f5()