summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine/2003-01-04-PhiTest.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/ExecutionEngine/2003-01-04-PhiTest.ll')
-rw-r--r--llvm/test/ExecutionEngine/2003-01-04-PhiTest.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/2003-01-04-PhiTest.ll b/llvm/test/ExecutionEngine/2003-01-04-PhiTest.ll
new file mode 100644
index 00000000000..45af8300a64
--- /dev/null
+++ b/llvm/test/ExecutionEngine/2003-01-04-PhiTest.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
+; RUN: lli %t.bc > /dev/null
+
+int %main() {
+ br label %Loop
+Loop:
+ %X = phi int [0, %0], [1, %Loop]
+ br bool true, label %Out, label %Loop
+Out:
+ ret int %X
+}
OpenPOWER on IntegriCloud