• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -mcpu=arm926ej-s -mattr=+vfp2
2
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.
6
7target 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"
8target triple = "thumbv5e-none-linux-gnueabi"
9
10; Function Attrs: optsize
11define fastcc void @_foo(float %walpha) #0 {
12entry:
13  br label %for.body13
14
15for.body13:                                       ; preds = %for.body13, %entry
16  br i1 undef, label %for.end182.critedge, label %for.body13
17
18for.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
25  br label %for.body193
26
27for.body193:                                      ; preds = %for.body193, %for.end182.critedge
28  %mul195 = fmul float %conv190, undef
29  br label %for.body193
30}
31
32attributes #0 = { optsize "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
33
34!llvm.ident = !{!0}
35
36!0 = !{!"clang version 3.5.0 "}
37