aboutsummaryrefslogtreecommitdiff
path: root/test/ExecutionEngine/test-phi.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-13 10:12:50 +0000
committerChris Lattner <sabre@nondot.org>2002-12-13 10:12:50 +0000
commit0907c16cbf72a9f138059bf0d6330a1c2284dfc4 (patch)
treee6d7a73fb19b0b78b7c088390362a1b8927ad0f2 /test/ExecutionEngine/test-phi.ll
parent333b2fa56063db4026809f9afaa403bf83e7a5b4 (diff)
Test more phi stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ExecutionEngine/test-phi.ll')
-rw-r--r--test/ExecutionEngine/test-phi.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ExecutionEngine/test-phi.ll b/test/ExecutionEngine/test-phi.ll
index 11aacc10fb..785a41b4f3 100644
--- a/test/ExecutionEngine/test-phi.ll
+++ b/test/ExecutionEngine/test-phi.ll
@@ -1,4 +1,16 @@
; test phi node
+
+%Y = global int 6
+
+void %blah(int *%X) {
+ br label %T
+T:
+ phi int* [%X, %0], [%Y, %Dead]
+ ret void
+Dead:
+ br label %T
+}
+
void %main() {
br label %Test
Test: