From: John Criswell Date: Wed, 11 May 2005 21:47:35 +0000 (+0000) Subject: Regression test for PR#563. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a65640edd0d77400e3d9d1e1ae189c44fa0c2e34;p=oota-llvm.git Regression test for PR#563. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21879 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/SparcV9/2005-05-11-DecomposeConstantExprCrash.ll b/test/CodeGen/SparcV9/2005-05-11-DecomposeConstantExprCrash.ll new file mode 100644 index 00000000000..8225213799a --- /dev/null +++ b/test/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) ; [#uses=0] + ret void +}