1 ; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 > %t
12 ; RUN: llvm-as < %s | llc -march=arm > %t
13 ; RUN: grep truncdfsf2 %t
14 ; RUN: grep extendsfdf2 %t
15 ; RUN: grep fixsfsi %t
16 ; RUN: grep fixunssfsi %t
17 ; RUN: grep fixdfsi %t
18 ; RUN: grep fixunsdfsi %t
19 ; RUN: grep floatsisf %t
20 ; RUN: grep floatsidf %t
21 ; RUN: grep floatunsisf %t
22 ; RUN: grep floatunsidf %t
23 ; RUN: llvm-as < %s | llc -march=thumb
25 define float @f1(double %x) {
27 %tmp1 = fptrunc double %x to float ; <float> [#uses=1]
31 define double @f2(float %x) {
33 %tmp1 = fpext float %x to double ; <double> [#uses=1]
37 define i32 @f3(float %x) {
39 %tmp = fptosi float %x to i32 ; <i32> [#uses=1]
43 define i32 @f4(float %x) {
45 %tmp = fptoui float %x to i32 ; <i32> [#uses=1]
49 define i32 @f5(double %x) {
51 %tmp = fptosi double %x to i32 ; <i32> [#uses=1]
55 define i32 @f6(double %x) {
57 %tmp = fptoui double %x to i32 ; <i32> [#uses=1]
61 define float @f7(i32 %a) {
63 %tmp = sitofp i32 %a to float ; <float> [#uses=1]
67 define double @f8(i32 %a) {
69 %tmp = sitofp i32 %a to double ; <double> [#uses=1]
73 define float @f9(i32 %a) {
75 %tmp = uitofp i32 %a to float ; <float> [#uses=1]
79 define double @f10(i32 %a) {
81 %tmp = uitofp i32 %a to double ; <double> [#uses=1]