aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-22 20:45:39 +0000
committerChris Lattner <sabre@nondot.org>2003-06-22 20:45:39 +0000
commitddd7e39537087a2fb8172a1f3d3a03df1f7f5f8d (patch)
tree94c5f8e9fba5e79071ac165cfe7e4865862c2364 /test/Transforms
parent578aa74541c51ac8218a12a4e770f5e188f6b2b6 (diff)
downloadexternal_llvm-ddd7e39537087a2fb8172a1f3d3a03df1f7f5f8d.zip
external_llvm-ddd7e39537087a2fb8172a1f3d3a03df1f7f5f8d.tar.gz
external_llvm-ddd7e39537087a2fb8172a1f3d3a03df1f7f5f8d.tar.bz2
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6855 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/InstCombine/2003-06-22-ConstantExprCrash.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2003-06-22-ConstantExprCrash.ll b/test/Transforms/InstCombine/2003-06-22-ConstantExprCrash.ll
new file mode 100644
index 0000000..9539fa8
--- /dev/null
+++ b/test/Transforms/InstCombine/2003-06-22-ConstantExprCrash.ll
@@ -0,0 +1,12 @@
+; This is a bug in the VMcode library, not instcombine, it's just convenient
+; to expose it here.
+
+; RUN: as < %s | opt -instcombine -disable-output
+
+%A = global int 1
+%B = global int 2
+
+bool %test() {
+ %C = setlt int* getelementptr (int* %A, long 1), getelementptr (int* %B, long 2) ; Will get promoted to constantexpr
+ ret bool %C
+}