brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 000e20a Raw
37 lines · plain
1; RUN: llc < %s -mcpu=arm926ej-s -mattr=+vfp22 3; This is a regression test, to ensure that fastcc functions are correctly4; handled when compiling for a processor which has a floating-point unit which5; 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: optsize11define fastcc void @_foo(float %walpha) #0 {12entry:13  br label %for.body1314 15for.body13:                                       ; preds = %for.body13, %entry16  br i1 undef, label %for.end182.critedge, label %for.body1317 18for.end182.critedge:                              ; preds = %for.body1319  %conv183 = fpext float %walpha to double20  %mul184 = fmul double %conv183, 8.200000e-0121  %conv185 = fptrunc double %mul184 to float22  %conv188 = fpext float %conv185 to double23  %mul189 = fmul double %conv188, 6.000000e-0124  %conv190 = fptrunc double %mul189 to float25  br label %for.body19326 27for.body193:                                      ; preds = %for.body193, %for.end182.critedge28  %mul195 = fmul float %conv190, undef29  br label %for.body19330}31 32attributes #0 = { optsize "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "use-soft-float"="false" }33 34!llvm.ident = !{!0}35 36!0 = !{!"clang version 3.5.0 "}37