[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
http://llvm.org/bugs/show_bug.cgi?id=5281
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
optimizers.
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i386-pc-linux-gnu"
%"big[]" = type [2147483647 x i32]
define void @_ada_smkr() {
entry:
%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