1 ; RUN: opt < %s -tailcallelim -S | FileCheck %s
3 ; Don't turn this into an infinite loop, this is probably the implementation
4 ; of fabs and we expect the codegen to lower fabs.
5 ; CHECK: @fabs(double %f)
9 define double @fabs(double %f) {
11 %tmp2 = call double @fabs( double %f ) ; <double> [#uses=1]
15 ; Do turn other calls into infinite loops though.
17 ; CHECK: define double @foo
20 define double @foo(double %f) {
21 %t= call double @foo(double %f)
25 ; CHECK: define float @fabsf
28 define float @fabsf(float %f) {
29 %t= call float @fabsf(float 2.0)
33 declare float @fabsf(float %f)
34 declare x86_fp80 @fabsl(x86_fp80 %f)