summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-05 16:57:55 +0000
committerChris Lattner <sabre@nondot.org>2003-06-05 16:57:55 +0000
commit340a2875b5e8916d185281b827d0bd33cd12a42e (patch)
tree01c933eea5fa8dde10c26e0de7d659f441c21316 /test
parentcd0cc613293b2e2d0964dca95a4c0f63708e0f64 (diff)
downloadllvm-340a2875b5e8916d185281b827d0bd33cd12a42e.tar.gz
llvm-340a2875b5e8916d185281b827d0bd33cd12a42e.tar.bz2
llvm-340a2875b5e8916d185281b827d0bd33cd12a42e.tar.xz
New testcase, the JIT currently handles this right, I just don't want to
reintroduce a bug that didn't have a testcase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/ExecutionEngine/2003-06-05-PHIBug.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/ExecutionEngine/2003-06-05-PHIBug.ll b/test/ExecutionEngine/2003-06-05-PHIBug.ll
new file mode 100644
index 0000000000..0abe5d819c
--- /dev/null
+++ b/test/ExecutionEngine/2003-06-05-PHIBug.ll
@@ -0,0 +1,16 @@
+; Testcase distilled from 256.bzip2.
+
+target endian = little
+target pointersize = 32
+
+int %main() {
+entry:
+ %X = add int 1, -1
+ br label %Next
+
+Next:
+ %A = phi int [ %X, %entry ]
+ %B = phi int [ %X, %entry ]
+ %C = phi int [ %X, %entry ]
+ ret int %C
+}