1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 > %t
2 ; RUN: grep fmsr %t | wc -l | grep 4
4 ; RUN: grep fmrs %t | wc -l | grep 2
6 ; RUN: grep fmrrd %t | wc -l | grep 5
7 ; RUN: grep fmdrr %t | wc -l | grep 2
11 ; RUN: grep 1065353216 %t
15 %tmp = cast int %a to float ; <float> [#uses=1]
21 %tmp = cast int %a to double ; <double> [#uses=1]
25 double %uint_to_double(uint %a) {
27 %tmp = cast uint %a to double
31 float %uint_to_float(uint %a) {
33 %tmp = cast uint %a to float
38 double %h(double* %v) {
40 %tmp = load double* %v ; <double> [#uses=1]
46 ret float 1.000000e+00
49 double %f2(double %a) {
55 %tmp = call double %f5() ; <double> [#uses=1]
56 call void %f4(double %tmp )
60 declare void %f4(double)