Regression test for PR#563.
authorJohn Criswell <criswell@uiuc.edu>
Wed, 11 May 2005 21:47:35 +0000 (21:47 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Wed, 11 May 2005 21:47:35 +0000 (21:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21879 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/SparcV9/2005-05-11-DecomposeConstantExprCrash.ll [new file with mode: 0644]

diff --git a/test/CodeGen/SparcV9/2005-05-11-DecomposeConstantExprCrash.ll b/test/CodeGen/SparcV9/2005-05-11-DecomposeConstantExprCrash.ll
new file mode 100644 (file)
index 0000000..8225213
--- /dev/null
@@ -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
+}