[LLVMbugs] [Bug 2625] New: Code snippet fails during code generation.
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sat Aug 2 15:18:26 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2625
Summary: Code snippet fails during code generation.
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: rich at pennware.com
CC: llvmbugs at cs.uiuc.edu
The following fails with an abort with llc:
; ModuleID = 't0042.ubc'
define i32 @main({ i32, { i32 } }*) {
entry:
%state = alloca { i32, { i32 } }* ; <{ i32, { i32 } }**>
[#uses=2]
store { i32, { i32 } }* %0, { i32, { i32 } }** %state
%retval = alloca i32 ; <i32*> [#uses=2]
store i32 0, i32* %retval
load { i32, { i32 } }** %state ; <{ i32, { i32 } }*>:1
[#uses=1]
store { i32, { i32 } } zeroinitializer, { i32, { i32 } }* %1
br label %return
return: ; preds = %entry
load i32* %retval ; <i32>:2 [#uses=1]
ret i32 %2
}
~/ellcc/ellcc] main% llc t0042.ubc
llc: /home/rich/llvm-trunk-new/lib/VMCore/ValueTypes.cpp:109: static llvm::MVT
llvm::MVT::getMVT(const llvm::Type*, bool): Assertion `0 && "Unknown type!"'
failed.
llc[0x8b5105e]
llc[0x8b51190]
[0x110400]
/lib/libc.so.6(abort+0x101)[0xa62f91]
/lib/libc.so.6(__assert_fail+0xee)[0xa5a93e]
llc(_ZN4llvm3MVT6getMVTEPKNS_4TypeEb+0x6f)[0x8b00073]
llc(_ZNK4llvm14TargetLowering12getValueTypeEPKNS_4TypeEb+0x26)[0x8566396]
llc(_ZN4llvm20SelectionDAGLowering8getValueEPKNS_5ValueE+0x9e0)[0x88243ba]
llc(_ZN4llvm20SelectionDAGLowering10visitStoreERNS_9StoreInstE+0xcf)[0x882cc6b]
llc(_ZN4llvm20SelectionDAGLowering5visitEjRNS_4UserE+0x28f)[0x885277b]
llc(_ZN4llvm20SelectionDAGLowering5visitERNS_11InstructionE+0x28)[0x8852a18]
llc(_ZN4llvm16SelectionDAGISel17BuildSelectionDAGERNS_12SelectionDAGEPNS_10BasicBlockERSt6vectorISt4pairIPNS_12MachineInstrEjESaIS9_EERNS_20FunctionLoweringInfoE+0x3a4)[0x8835aee]
llc(_ZN4llvm16SelectionDAGISel16SelectBasicBlockEPNS_10BasicBlockERNS_15MachineFunctionERNS_20FunctionLoweringInfoERNS_18RecyclingAllocatorINS_16BumpPtrAllocatorENS_6SDNodeELj136ELj4EEE+0xb7)[0x8836307]
llc(_ZN4llvm16SelectionDAGISel20SelectAllBasicBlocksERNS_8FunctionERNS_15MachineFunctionERNS_20FunctionLoweringInfoE+0x7a)[0x8837b38]
llc(_ZN4llvm16SelectionDAGISel13runOnFunctionERNS_8FunctionE+0x210)[0x8838688]
llc[0x873efb1]
llc(_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE+0x135)[0x8ade227]
llc(_ZN4llvm23FunctionPassManagerImpl3runERNS_8FunctionE+0x6e)[0x8ade4ac]
llc(_ZN4llvm19FunctionPassManager3runERNS_8FunctionE+0x89)[0x8ade5fb]
llc(main+0x9a2)[0x83cb334]
/lib/libc.so.6(__libc_start_main+0xe0)[0xa4e390]
llc[0x83c99c1]
Abort
--
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