Move & restructure test per review.
[oota-llvm.git] / test / CodeGen / X86 / 2007-11-30-TestLoadFolding.ll
index 25fc6ac6a2d4fe43c13864d74016c60ad5e059ac..0d43a6e73f873823cdab4ca95c249559f040285c 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llvm-as < %s | llc -march=x86 -stats |& \
-; RUN:   grep {2 .*folded into instructions}
-; RUN: llvm-as < %s | llc -march=x86 | grep cmp | count 3
+; RUN:   grep {1 .*folded into instructions}
+; RUN: llvm-as < %s | llc -march=x86 | grep cmp | count 4
 
        %struct.quad_struct = type { i32, i32, %struct.quad_struct*, %struct.quad_struct*, %struct.quad_struct*, %struct.quad_struct*, %struct.quad_struct* }
 
@@ -31,7 +31,7 @@ cond_true.i163:               ; preds = %cond_true.i35
        %tmp19.i12.i171 = load %struct.quad_struct** %tmp18.i11.i170, align 4           ; <%struct.quad_struct*> [#uses=1]
        %tmp21.i173 = tail call fastcc i32 @sum_adjacent( %struct.quad_struct* %tmp19.i12.i171, i32 3, i32 2, i32 %tmp7.i162 )          ; <i32> [#uses=1]
        %tmp22.i174 = add i32 %tmp21.i173, %tmp13.i168          ; <i32> [#uses=1]
-       br i1 false, label %cond_true.i141, label %cond_false.i156
+       br i1 %tmp4.i161, label %cond_true.i141, label %cond_false.i156
 
 cond_false.i178:               ; preds = %cond_true.i35
        ret i32 0