1 ; RUN: llc -mtriple=thumb-eabi %s -o /dev/null 2 3 define float @f1(double %x) { 4 entry: 5 %tmp1 = fptrunc double %x to float ; <float> [#uses=1] 6 ret float %tmp1 7 } 8 9 define double @f2(float %x) { 10 entry: 11 %tmp1 = fpext float %x to double ; <double> [#uses=1] 12 ret double %tmp1 13 } 14 15 define i32 @f3(float %x) { 16 entry: 17 %tmp = fptosi float %x to i32 ; <i32> [#uses=1] 18 ret i32 %tmp 19 } 20 21 define i32 @f4(float %x) { 22 entry: 23 %tmp = fptoui float %x to i32 ; <i32> [#uses=1] 24 ret i32 %tmp 25 } 26 27 define i32 @f5(double %x) { 28 entry: 29 %tmp = fptosi double %x to i32 ; <i32> [#uses=1] 30 ret i32 %tmp 31 } 32 33 define i32 @f6(double %x) { 34 entry: 35 %tmp = fptoui double %x to i32 ; <i32> [#uses=1] 36 ret i32 %tmp 37 } 38 39 define float @f7(i32 %a) { 40 entry: 41 %tmp = sitofp i32 %a to float ; <float> [#uses=1] 42 ret float %tmp 43 } 44 45 define double @f8(i32 %a) { 46 entry: 47 %tmp = sitofp i32 %a to double ; <double> [#uses=1] 48 ret double %tmp 49 } 50 51 define float @f9(i32 %a) { 52 entry: 53 %tmp = uitofp i32 %a to float ; <float> [#uses=1] 54 ret float %tmp 55 } 56 57 define double @f10(i32 %a) { 58 entry: 59 %tmp = uitofp i32 %a to double ; <double> [#uses=1] 60 ret double %tmp 61 } 62