New testcase that the sparc backend crashes on
authorChris Lattner <sabre@nondot.org>
Sat, 9 Apr 2005 06:26:27 +0000 (06:26 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 9 Apr 2005 06:26:27 +0000 (06:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21173 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/SparcV9/2005-04-09-GEP-Crash.ll [new file with mode: 0644]

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 (file)
index 0000000..07df721
--- /dev/null
@@ -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
+}