summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-20 00:41:55 +0000
committerChris Lattner <sabre@nondot.org>2005-09-20 00:41:55 +0000
commit168d2e53438f7ac1a7292355b79ea8b28fde424c (patch)
tree753f1e7fba350b1f5ed3e553d59af2197d57db90 /llvm/test/Regression
parent049cb4482ff89e90533fc78fc55fddb3f798d2c9 (diff)
downloadbcm5719-llvm-168d2e53438f7ac1a7292355b79ea8b28fde424c.tar.gz
bcm5719-llvm-168d2e53438f7ac1a7292355b79ea8b28fde424c.zip
new testcase
llvm-svn: 23394
Diffstat (limited to 'llvm/test/Regression')
-rw-r--r--llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll20
1 files changed, 19 insertions, 1 deletions
diff --git a/llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll b/llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll
index 9098376ba46..2da837d73b8 100644
--- a/llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll
+++ b/llvm/test/Regression/Transforms/SimplifyCFG/branch-phi-thread.ll
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | opt -simplifycfg -adce | llvm-dis | not grep 'call void %f1'
+; RUN: llvm-as < %s | opt -simplifycfg -adce | llvm-dis | not grep 'call void %f1' &&
+; RUN: llvm-as < %s | opt -simplifycfg -adce -disable-output
declare void %f1()
declare void %f2()
declare void %f3()
@@ -6,6 +7,23 @@ declare void %f4()
implementation
+int %test1(int %X, bool %D) {
+E:
+ %C = seteq int %X, 0
+ br bool %C, label %T, label %F
+T:
+ br bool %C, label %B, label %A
+A:
+ call void %f1()
+ br bool %D, label %T, label %F
+B:
+ call void %f2()
+ ret int 345
+F:
+ call void %f3()
+ ret int 123
+}
+
int %test2(int %X, bool %D) {
E:
%C = seteq int %X, 0
OpenPOWER on IntegriCloud