Add ExtractValue instruction to SimplifyCFG's ComputeSpeculationCost
[oota-llvm.git] / test / Transforms / SimplifyCFG / 2008-01-02-hoist-fp-add.ll
index 00f2d5bcf1350429d6c33120f024ebbb4d7b4178..cf29b7159793ff966418f1dd8658d6d6ba4c1b48 100644 (file)
@@ -1,5 +1,5 @@
 ; The phi should not be eliminated in this case, because the fp op could trap.
-; RUN: opt < %s -simplifycfg -S | grep {= phi double}
+; RUN: opt < %s -simplifycfg -S | FileCheck %s
 
 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 = "i686-apple-darwin8"
@@ -19,6 +19,7 @@ cond_true:            ; preds = %entry
        br label %cond_next
 
 cond_next:             ; preds = %cond_true, %entry
+; CHECK: = phi double
        %F.0 = phi double [ %tmp, %entry ], [ %tmp7, %cond_true ]               ; <double> [#uses=1]
        store double %F.0, double* @G, align 8
        ret void