From 2f65f8e72457e66c547272f007a8ba8fba4a9d8c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 9 Apr 2005 06:26:27 +0000 Subject: [PATCH] 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 --- test/CodeGen/SparcV9/2005-04-09-GEP-Crash.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/CodeGen/SparcV9/2005-04-09-GEP-Crash.ll 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 00000000000..07df721891c --- /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 +} -- 2.34.1