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
24 define float @f1(double %x) {
26 %tmp1 = fptrunc double %x to float ; <float> [#uses=1]
30 define double @f2(float %x) {
32 %tmp1 = fpext float %x to double ; <double> [#uses=1]
36 define i32 @f3(float %x) {
38 %tmp = fptosi float %x to i32 ; <i32> [#uses=1]
42 define i32 @f4(float %x) {
44 %tmp = fptoui float %x to i32 ; <i32> [#uses=1]
48 define i32 @f5(double %x) {
50 %tmp = fptosi double %x to i32 ; <i32> [#uses=1]
54 define i32 @f6(double %x) {
56 %tmp = fptoui double %x to i32 ; <i32> [#uses=1]
60 define float @f7(i32 %a) {
62 %tmp = sitofp i32 %a to float ; <float> [#uses=1]
66 define double @f8(i32 %a) {
68 %tmp = sitofp i32 %a to double ; <double> [#uses=1]
72 define float @f9(i32 %a) {
74 %tmp = uitofp i32 %a to float ; <float> [#uses=1]
78 define double @f10(i32 %a) {
80 %tmp = uitofp i32 %a to double ; <double> [#uses=1]