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 floatdisf %t
20 ; RUN: grep floatsidf %t
21 ; RUN: llvm-as < %s | llc -march=thumb
23 define float @f1(double %x) {
25 %tmp1 = fptrunc double %x to float ; <float> [#uses=1]
29 define double @f2(float %x) {
31 %tmp1 = fpext float %x to double ; <double> [#uses=1]
35 define i32 @f3(float %x) {
37 %tmp = fptosi float %x to i32 ; <i32> [#uses=1]
41 define i32 @f4(float %x) {
43 %tmp = fptoui float %x to i32 ; <i32> [#uses=1]
47 define i32 @f5(double %x) {
49 %tmp = fptosi double %x to i32 ; <i32> [#uses=1]
53 define i32 @f6(double %x) {
55 %tmp = fptoui double %x to i32 ; <i32> [#uses=1]
59 define float @f7(i32 %a) {
61 %tmp = sitofp i32 %a to float ; <float> [#uses=1]
65 define double @f8(i32 %a) {
67 %tmp = sitofp i32 %a to double ; <double> [#uses=1]
71 define float @f9(i32 %a) {
73 %tmp = uitofp i32 %a to float ; <float> [#uses=1]
77 define double @f10(i32 %a) {
79 %tmp = uitofp i32 %a to double ; <double> [#uses=1]