1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 > %t
2 ; RUN: grep fmsr %t | wc -l | grep 4
6 ; RUN: grep fmrrd %t | wc -l | grep 5
7 ; RUN: grep fmdrr %t | wc -l | grep 2
12 ; RUN: grep 1065353216 %t
16 %tmp = cast int %a to float ; <float> [#uses=1]
22 %tmp = cast int %a to double ; <double> [#uses=1]
26 double %uint_to_double(uint %a) {
28 %tmp = cast uint %a to double
32 float %uint_to_float(uint %a) {
34 %tmp = cast uint %a to float
39 double %h(double* %v) {
41 %tmp = load double* %v ; <double> [#uses=1]
47 ret float 1.000000e+00
50 double %f2(double %a) {
56 %tmp = call double %f5() ; <double> [#uses=1]
57 call void %f4(double %tmp )
61 declare void %f4(double)