summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2005-05-11 21:47:35 +0000
committerJohn Criswell <criswell@uiuc.edu>2005-05-11 21:47:35 +0000
commite5121fad611703cccf74a0dd4b381a962518e024 (patch)
treef8335c994d2f0c6252e729f130624a2b4a6855c9
parent96726a46c7333d3e7376c1b9e8cd165201148a44 (diff)
downloadbcm5719-llvm-e5121fad611703cccf74a0dd4b381a962518e024.tar.gz
bcm5719-llvm-e5121fad611703cccf74a0dd4b381a962518e024.zip
Regression test for PR#563.
llvm-svn: 21879
-rw-r--r--llvm/test/Regression/CodeGen/SparcV9/2005-05-11-DecomposeConstantExprCrash.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/SparcV9/2005-05-11-DecomposeConstantExprCrash.ll b/llvm/test/Regression/CodeGen/SparcV9/2005-05-11-DecomposeConstantExprCrash.ll
new file mode 100644
index 00000000000..8225213799a
--- /dev/null
+++ b/llvm/test/Regression/CodeGen/SparcV9/2005-05-11-DecomposeConstantExprCrash.ll
@@ -0,0 +1,16 @@
+; ModuleID = 'bugpoint-reduced-simplified.bc'
+; Reduced from the hash benchmark from the ShootOut C++ benchmark test
+;
+; RUN: llvm-as < %s | llc -march=sparcv9
+
+target endian = big
+target pointersize = 64
+%_ZN9__gnu_cxx16__stl_prime_listE = external global [28 x ulong] ; <[28 x ulong]*> [#uses=3]
+
+implementation ; Functions:
+
+fastcc void %_ZSt11lower_boundIPKmmET_S2_S2_RKT0_() {
+entry:
+ %retval = select bool setgt (long shr (long sub (long cast (ulong* getelementptr ([28 x ulong]* %_ZN9__gnu_cxx16__stl_prime_listE, long 0, long 28) to long), long cast ([28 x ulong]* %_ZN9__gnu_cxx16__stl_prime_listE to long)), ubyte 3), long 0), ulong* null, ulong* getelementptr ([28 x ulong]* %_ZN9__gnu_cxx16__stl_prime_listE, long 0, long 0) ; <ulong*> [#uses=0]
+ ret void
+}
OpenPOWER on IntegriCloud