[LLVMbugs] [Bug 5281] New: Codegen crash on GEP with huge type

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Oct 22 21:56:08 PDT 2009


           Summary: Codegen crash on GEP with huge type
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu

$ llc big.ll
llc: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:869: llvm::SDValue
llvm::SelectionDAG::getConstant(uint64_t, llvm::EVT, bool): Assertion
`(EltVT.getSizeInBits() >= 64 || (uint64_t)((int64_t)Val >>
EltVT.getSizeInBits()) + 1 < 2) && "getConstant with a uint64_t value that
doesn't fit in the type!"' failed.

Yes, the type is big, but it's not that big - anyway, llc should not
crash on it.  This came from real code, poorly transformed by the LLVM

target datalayout =
target triple = "i386-pc-linux-gnu"

%"big[]" = type [2147483647 x i32]

define void @_ada_smkr() {
  %0 = getelementptr %"big[]"* undef, i32 undef, i32 0 ; <i32*> [#uses=0]
  ret void

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list