[LLVMbugs] [Bug 773] NEW: assertion triggered in x86 backend. (SelectionDAG operands not correctly expanded/legalized?)

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue May 9 06:14:33 PDT 2006


http://llvm.org/bugs/show_bug.cgi?id=773

           Summary: assertion triggered in x86 backend. (SelectionDAG
                    operands not correctly expanded/legalized?)
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: marco-ml at gmx.net


The attached .bc file causes an assertion to be triggered when running
llc -march=x86 reduced.bc

llc:
/home/mcm/projects/llvm/build-debug/../llvm-cvs/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:2826:
llvm::SDOperand <unnamed>::SelectionDAGLegalize::PromoteOp(llvm::SDOperand):
Assertion `getTypeAction(VT) == Promote && "Caller should expand or legalize
operands that are not promotable!"' failed.
/home/mcm/projects/llvm/install-debug/bin/llc((anonymous
namespace)::PrintStackTrace()+0x17)[0xd97c37]
/home/mcm/projects/llvm/install-debug/bin/llc((anonymous
namespace)::SignalHandler(int)+0xe5)[0xd97e6d]
/lib/tls/libc.so.6[0x2aaaab4787f0]
/lib/tls/libc.so.6(gsignal+0x39)[0x2aaaab478799]
/lib/tls/libc.so.6(abort+0xfe)[0x2aaaab479c3e]
/lib/tls/libc.so.6(__assert_fail+0xf0)[0x2aaaab4724f0]
/home/mcm/projects/llvm/install-debug/bin/llc((anonymous
namespace)::SelectionDAGLegalize::PromoteOp(llvm::SDOperand)+0x66)[0xae4368]
/home/mcm/projects/llvm/install-debug/bin/llc((anonymous
namespace)::SelectionDAGLegalize::PromoteOp(llvm::SDOperand)+0x1f83)[0xae6285]
/home/mcm/projects/llvm/install-debug/bin/llc((anonymous
namespace)::SelectionDAGLegalize::HandleOp(llvm::SDOperand)+0xa9)[0xacfdf9]
/home/mcm/projects/llvm/install-debug/bin/llc((anonymous
namespace)::SelectionDAGLegalize::LegalizeDAG()+0x22a)[0xacf7f0]
/home/mcm/projects/llvm/install-debug/bin/llc(llvm::SelectionDAG::Legalize()+0x43)[0xaf4f31]
/home/mcm/projects/llvm/install-debug/bin/llc(llvm::SelectionDAGISel::CodeGenAndEmitDAG(llvm::SelectionDAG&)+0x6d)[0xb1ea63]
/home/mcm/projects/llvm/install-debug/bin/llc(llvm::SelectionDAGISel::SelectBasicBlock(llvm::BasicBlock*,
llvm::MachineFunction&, llvm::FunctionLoweringInfo&)+0xc9)[0xb1ebfb]
/home/mcm/projects/llvm/install-debug/bin/llc(llvm::SelectionDAGISel::runOnFunction(llvm::Function&)+0x3a7)[0xb1d213]
/home/mcm/projects/llvm/install-debug/bin/llc((anonymous
namespace)::X86DAGToDAGISel::runOnFunction(llvm::Function&)+0x2b)[0x9cd761]
/home/mcm/projects/llvm/install-debug/bin/llc(llvm::FunctionPassManagerT::runPass(llvm::FunctionPass*,
llvm::Function*)+0x2c)[0xcb611c]
/home/mcm/projects/llvm/install-debug/bin/llc(llvm::PassManagerT<llvm::FTraits>::runPasses(llvm::Function*,
std::map<llvm::Pass*, std::vector<llvm::Pass*, std::allocator<llvm::Pass*> >,
std::less<llvm::Pass*>, std::allocator<std::pair<llvm::Pass* const,
std::vector<llvm::Pass*, std::allocator<llvm::Pass*> > > > >&)+0x12d)[0xcb4985]
/home/mcm/projects/llvm/install-debug/bin/llc(llvm::PassManagerT<llvm::FTraits>::runOnUnit(llvm::Function*)+0x148)[0xcb4810]
/home/mcm/projects/llvm/install-debug/bin/llc(llvm::FunctionPassManagerT::runOnFunction(llvm::Function&)+0x30)[0xcb61cc]
/home/mcm/projects/llvm/install-debug/bin/llc(llvm::FunctionPass::runOnModule(llvm::Module&)+0x97)[0xc4782f]
/home/mcm/projects/llvm/install-debug/bin/llc(llvm::ModulePassManager::runPass(llvm::ModulePass*,
llvm::Module*)+0x2c)[0xcb7bc6]
/home/mcm/projects/llvm/install-debug/bin/llc(llvm::PassManagerT<llvm::MTraits>::runPasses(llvm::Module*,
std::map<llvm::Pass*, std::vector<llvm::Pass*, std::allocator<llvm::Pass*> >,
std::less<llvm::Pass*>, std::allocator<std::pair<llvm::Pass* const,
std::vector<llvm::Pass*, std::allocator<llvm::Pass*> > > > >&)+0x12d)[0xcb6b01]
/home/mcm/projects/llvm/install-debug/bin/llc(llvm::PassManagerT<llvm::MTraits>::runOnUnit(llvm::Module*)+0x148)[0xcb698c]
/home/mcm/projects/llvm/install-debug/bin/llc(llvm::ModulePassManager::runOnModule(llvm::Module&)+0x30)[0xc46888]
/home/mcm/projects/llvm/install-debug/bin/llc(llvm::PassManager::run(llvm::Module&)+0x2e)[0xc46c72]
/home/mcm/projects/llvm/install-debug/bin/llc(main+0xcd7)[0x82a5cf]
/lib/tls/libc.so.6(__libc_start_main+0xe4)[0x2aaaab466644]
/home/mcm/projects/llvm/install-debug/bin/llc(__gxx_personality_v0+0x162)[0x82975a]
Aborted



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the llvm-bugs mailing list