1 ; RUN: llc -mtriple=arm-eabi -float-abi=soft -mattr=+vfp2 %s -o - | 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-LABEL: 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-LABEL: uint_to_float:
36 ;CHECK-NEXT: vcvt.f32.u32
39 %tmp = uitofp i32 %a to float ; <float> [#uses=1]
43 define double @h(ptr %v) {
48 %tmp = load double, ptr %v ; <double> [#uses=1]
54 ;CHECK: mov r0, #1065353216
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)