summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-27 16:45:09 +0000
committerChris Lattner <sabre@nondot.org>2003-05-27 16:45:09 +0000
commita12f1e79bbca1d2519b67249b14259e6af70f083 (patch)
tree8fcff38e9cebfe7ac3da7ef8170c29c571c76093
parent2a9c847f259d3f1852749bb6af31f5f7973b268a (diff)
downloadllvm-a12f1e79bbca1d2519b67249b14259e6af70f083.tar.gz
llvm-a12f1e79bbca1d2519b67249b14259e6af70f083.tar.bz2
llvm-a12f1e79bbca1d2519b67249b14259e6af70f083.tar.xz
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6353 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll b/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll
new file mode 100644
index 0000000000..353a036d5b
--- /dev/null
+++ b/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll
@@ -0,0 +1,8 @@
+; RUN: as < %s | opt -instcombine -disable-output
+
+%X = global int 5
+long %test() {
+ %C = add long 1, 2
+ %V = add long cast(int* %X to long), %C
+ ret long %V
+}