1 ; RUN: llc < %s -mcpu=arm926ej-s -mattr=+vfp2
3 ; This is a regression test, to ensure that fastcc functions are correctly
4 ; handled when compiling for a processor which has a floating-point unit which
5 ; is not accessible from the selected instruction set.
7 target datalayout = "e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i64:64-v128:64:128-a:0:32-n32-S64"
8 target triple = "thumbv5e-none-linux-gnueabi"
10 ; Function Attrs: optsize
11 define fastcc void @_foo(float %walpha) #0 {
15 for.body13: ; preds = %for.body13, %entry
16 br i1 undef, label %for.end182.critedge, label %for.body13
18 for.end182.critedge: ; preds = %for.body13
19 %conv183 = fpext float %walpha to double
20 %mul184 = fmul double %conv183, 8.200000e-01
21 %conv185 = fptrunc double %mul184 to float
22 %conv188 = fpext float %conv185 to double
23 %mul189 = fmul double %conv188, 6.000000e-01
24 %conv190 = fptrunc double %mul189 to float
27 for.body193: ; preds = %for.body193, %for.end182.critedge
28 %mul195 = fmul float %conv190, undef
32 attributes #0 = { optsize "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
36 !0 = !{!"clang version 3.5.0 "}