1 ; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s
3 define float @f(i32 %a) {
6 ;CHECK-NEXT: vcvt.f32.s32
9 %tmp = sitofp i32 %a to float ; <float> [#uses=1]
13 define double @g(i32 %a) {
16 ;CHECK-NEXT: vcvt.f64.s32
19 %tmp = sitofp i32 %a to double ; <double> [#uses=1]
23 define double @uint_to_double(i32 %a) {
24 ;CHECK: uint_to_double:
26 ;CHECK-NEXT: vcvt.f64.u32
29 %tmp = uitofp i32 %a to double ; <double> [#uses=1]
33 define float @uint_to_float(i32 %a) {
34 ;CHECK: uint_to_float:
36 ;CHECK-NEXT: vcvt.f32.u32
39 %tmp = uitofp i32 %a to float ; <float> [#uses=1]
43 define double @h(double* %v) {
48 %tmp = load double* %v ; <double> [#uses=1]
56 ret float 1.000000e+00
59 define double @f2(double %a) {
70 %tmp = call double @f5( ) ; <double> [#uses=1]
71 call void @f4( double %tmp )
75 declare void @f4(double)