aboutsummaryrefslogtreecommitdiffstats
path: root/test/ExecutionEngine/2003-01-04-PhiTest.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-01-13 20:02:16 +0000
committerChris Lattner <sabre@nondot.org>2003-01-13 20:02:16 +0000
commit3ddad6f277a8c85c031a3a051ded4ed6da806395 (patch)
treec66b88ec1c71e2657a38e78d0b8571642de65678 /test/ExecutionEngine/2003-01-04-PhiTest.ll
parentbc40e898e153c9b81f246a7971eaac7b14446c49 (diff)
downloadexternal_llvm-3ddad6f277a8c85c031a3a051ded4ed6da806395.zip
external_llvm-3ddad6f277a8c85c031a3a051ded4ed6da806395.tar.gz
external_llvm-3ddad6f277a8c85c031a3a051ded4ed6da806395.tar.bz2
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5263 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ExecutionEngine/2003-01-04-PhiTest.ll')
-rw-r--r--test/ExecutionEngine/2003-01-04-PhiTest.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ExecutionEngine/2003-01-04-PhiTest.ll b/test/ExecutionEngine/2003-01-04-PhiTest.ll
new file mode 100644
index 0000000..59d5fde
--- /dev/null
+++ b/test/ExecutionEngine/2003-01-04-PhiTest.ll
@@ -0,0 +1,10 @@
+; RUN: as < %s | lli -force-interpreter=false
+
+int %main() {
+ br label %Loop
+Loop:
+ %X = phi int [0, %0], [1, %Loop]
+ br bool true, label %Out, label %Loop
+Out:
+ ret int %X
+}