1 ; RUN: llvm-as < %s | llc -march=arm &&
2 ; RUN: llvm-as < %s | llc -march=arm | grep fmsr | wc -l | grep 5 &&
3 ; RUN: llvm-as < %s | llc -march=arm | grep fsitos &&
4 ; RUN: llvm-as < %s | llc -march=arm | grep fmrs &&
5 ; RUN: llvm-as < %s | llc -march=arm | grep fsitod &&
6 ; RUN: llvm-as < %s | llc -march=arm | grep fmrrd | wc -l | grep 5 &&
7 ; RUN: llvm-as < %s | llc -march=arm | grep fmdrr | wc -l | grep 3 &&
8 ; RUN: llvm-as < %s | llc -march=arm | grep fldd &&
9 ; RUN: llvm-as < %s | llc -march=arm | grep flds &&
10 ; RUN: llvm-as < %s | llc -march=arm | grep fstd &&
11 ; RUN: llvm-as < %s | llc -march=arm | grep fsts &&
12 ; RUN: llvm-as < %s | llc -march=arm | grep fuitod &&
13 ; RUN: llvm-as < %s | llc -march=arm | grep fuitos &&
14 ; RUN: llvm-as < %s | llc -march=arm | grep ".word.*1065353216"
18 %tmp = cast int %a to float ; <float> [#uses=1]
24 %tmp = cast int %a to double ; <double> [#uses=1]
28 double %uint_to_double(uint %a) {
30 %tmp = cast uint %a to double
34 float %uint_to_float(uint %a) {
36 %tmp = cast uint %a to float
41 double %h(double* %v) {
43 %tmp = load double* %v ; <double> [#uses=1]
49 ret float 1.000000e+00
52 double %f2(double %a) {
58 %tmp = call double %f5() ; <double> [#uses=1]
59 call void %f4(double %tmp )
63 declare void %f4(double)
66 void %f6(float %a, float* %b) {
68 store float %a, float* %b
72 void %f7(double %a, double* %b) {
74 store double %a, double* %b