Handle the situation where CodeGenPrepare removes a reference to a BB that has
[oota-llvm.git] / test / CodeGen / ARM / cse-libcalls.ll
index 0dcf9ddc0bb1728c28add44570818a0e588904ae..62b9e4380b2a730a686a7f2c8a6a9eea57dea9f9 100644 (file)
@@ -1,10 +1,10 @@
-; RUN: llc < %s -march=arm | grep {bl.\*__ltdf} | count 1
+; RUN: llc < %s -march=arm | grep "bl.*__ltdf" | count 1
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
 target triple = "i386-apple-darwin8"
 
 ; Without CSE of libcalls, there are two calls in the output instead of one.
 
-define i32 @u_f_nonbon(double %lambda) nounwind {
+define double @u_f_nonbon(double %lambda) nounwind {
 entry:
        %tmp19.i.i = load double* null, align 4         ; <double> [#uses=2]
        %tmp6.i = fcmp olt double %tmp19.i.i, 1.000000e+00              ; <i1> [#uses=1]
@@ -26,5 +26,5 @@ bb502.loopexit.i:             ; preds = %bb28.i
        br i1 false, label %bb.nph53.i, label %bb508.i
 
 bb508.i:               ; preds = %bb502.loopexit.i, %entry
-       ret i32 1
+       ret double %tmp10.i4
 }