summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-11-26 08:24:25 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-11-26 08:24:25 +0000
commitf156f0cf5763abb3ee1ae8d3ba69b99f4b96d23a (patch)
tree70c150dbb65398cd1da1a0d7a421112e8f40f14e
parent04268df8ed019410e90b035ad2b40d10018d1b7b (diff)
downloadbcm5719-llvm-f156f0cf5763abb3ee1ae8d3ba69b99f4b96d23a.tar.gz
bcm5719-llvm-f156f0cf5763abb3ee1ae8d3ba69b99f4b96d23a.zip
FileCheck-ize this test and make it more precise. This is in preparation
for adding other tests. llvm-svn: 145143
-rw-r--r--llvm/test/Transforms/SimplifyCFG/branch-fold.ll16
1 files changed, 11 insertions, 5 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/branch-fold.ll b/llvm/test/Transforms/SimplifyCFG/branch-fold.ll
index 266609b52a5..2b296811918 100644
--- a/llvm/test/Transforms/SimplifyCFG/branch-fold.ll
+++ b/llvm/test/Transforms/SimplifyCFG/branch-fold.ll
@@ -1,13 +1,19 @@
-; RUN: opt < %s -simplifycfg -S | grep {br i1} | count 1
+; RUN: opt < %s -simplifycfg -S | FileCheck %s
define void @test(i32* %P, i32* %Q, i1 %A, i1 %B) {
+; CHECK: test
+; CHECK: br i1
+; CHECK-NOT: br i1
+; CHECK: ret
+; CHECK: ret
+
+entry:
br i1 %A, label %a, label %b
-a: ; preds = %0
+a:
br i1 %B, label %b, label %c
-b: ; preds = %a, %0
+b:
store i32 123, i32* %P
ret void
-c: ; preds = %a
+c:
ret void
}
-
OpenPOWER on IntegriCloud