aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-06-24 17:45:37 +0000
committerChris Lattner <sabre@nondot.org>2002-06-24 17:45:37 +0000
commit578cf9004063e39ad2e91deebe6e46545be70f69 (patch)
treec018c9fa49ead00fa174babff4438212bffc9cfe /test
parent6a4550927241082b3f1f30a0bd042269b7ff1f3a (diff)
downloadexternal_llvm-578cf9004063e39ad2e91deebe6e46545be70f69.zip
external_llvm-578cf9004063e39ad2e91deebe6e46545be70f69.tar.gz
external_llvm-578cf9004063e39ad2e91deebe6e46545be70f69.tar.bz2
Testcase for unimplemented feature
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/SimplifyCFG/2002-06-24-PHINode.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Transforms/SimplifyCFG/2002-06-24-PHINode.ll b/test/Transforms/SimplifyCFG/2002-06-24-PHINode.ll
new file mode 100644
index 0000000..7ca058f
--- /dev/null
+++ b/test/Transforms/SimplifyCFG/2002-06-24-PHINode.ll
@@ -0,0 +1,17 @@
+; -simplifycfg is not folding blocks if there is a PHI node involved. This
+; should be fixed eventually
+
+; RUN: if as < %s | opt -sccp | dis | grep br
+; RUN: then exit 1
+; RUN: else exit 0
+; RUN: fi
+
+int %main(int %argc) {
+ br label %InlinedFunctionReturnNode
+
+InlinedFunctionReturnNode: ;[#uses=1]
+ %X = phi int [ 7, %0 ] ; <int> [#uses=1]
+ %Y = add int %X, %argc ; <int> [#uses=1]
+ ret int %Y
+}
+