aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-09 06:26:27 +0000
committerChris Lattner <sabre@nondot.org>2005-04-09 06:26:27 +0000
commit2f65f8e72457e66c547272f007a8ba8fba4a9d8c (patch)
tree3793e50f48658a52f31d117ea3aa7ed00be17677
parent59723e96987bdbfbada75fdbf1742f6a28d90d7d (diff)
New testcase that the sparc backend crashes on
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21173 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/SparcV9/2005-04-09-GEP-Crash.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/SparcV9/2005-04-09-GEP-Crash.ll b/test/CodeGen/SparcV9/2005-04-09-GEP-Crash.ll
new file mode 100644
index 0000000000..07df721891
--- /dev/null
+++ b/test/CodeGen/SparcV9/2005-04-09-GEP-Crash.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | llc -march=sparcv9
+
+
+%x_ = external global { [2530944 x double], [2197000 x double], [2530944 x double], [4 x double], [4 x double], [7 x long], [7 x long] }
+
+implementation
+
+void %norm2u3_() {
+entry:
+ %tmp.47 = getelementptr [2530944 x double]* cast (double* getelementptr ([2530944 x double]* getelementptr ({ [2530944 x double], [2197000 x double], [2530944 x double], [4 x double], [4 x double], [7 x long], [7 x long] }* %x_, long 0, uint 0), long 1, long 2197000) to [2530944 x double]*), long 0, long 0
+ ret void
+}