Add missing newlines at EOF (for clang++).
[oota-llvm.git] / test / Transforms / SimplifyCFG / branch-fold.ll
index 8bd137cc663ee637da9a58d11b2a603396e0ac62..266609b52a54ae638a390e245aabe4941d431e21 100644 (file)
@@ -1,12 +1,13 @@
-; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep 'br bool' | wc -l | grep 1
+; RUN: opt < %s -simplifycfg -S | grep {br i1} | count 1
 
-void %test(int* %P, int* %Q, bool %A, bool %B) {
-       br bool %A, label %a, label %b   ;; fold the two branches into one
-a:
-       br bool %B, label %b, label %c
-b:
-       store int 123, int* %P
-       ret void
-c:
-       ret void
+define void @test(i32* %P, i32* %Q, i1 %A, i1 %B) {
+        br i1 %A, label %a, label %b
+a:              ; preds = %0
+        br i1 %B, label %b, label %c
+b:              ; preds = %a, %0
+        store i32 123, i32* %P
+        ret void
+c:              ; preds = %a
+        ret void
 }
+