[LLVMbugs] [Bug 4976] New: [PPC] An asm causes an assert in the code generator

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Sep 14 05:28:29 PDT 2009


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

           Summary: [PPC] An asm causes an assert in the code generator
           Product: new-bugs
           Version: trunk
          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


Created an attachment (id=3511)
 --> (http://llvm.org/bugs/attachment.cgi?id=3511)
The file that causes the abort.

The attached .ll file causes the PPC code generator to abort:

[~/ellcc/test/source] main% ~/ellcc/ellcc/powerpc-elf-ecc _exit.i -c
[~/ellcc/test/source] main% llc _exit.o
llc:
/home/rich/llvm-trunk-new/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodesEmit.cpp:122:
void llvm::ScheduleDAGSDNodes::EmitCopyFromReg(llvm::SDNode*, unsigned int,
bool, bool, unsigned int, llvm::DenseMap<llvm::SDValue, unsigned int,
llvm::DenseMapInfo<llvm::SDValue>, llvm::DenseMapInfo<unsigned int> >&):
Assertion `Emitted && "Unable to issue a copy instruction!\n"' failed.          
0   llc       0x0902b0c0                                                        
1   llc       0x0902b68c                                                        
2             0x00362400 __kernel_sigreturn + 0                                 
3   libc.so.6 0x00bcce28 abort + 392                                            
4   libc.so.6 0x00bc440e __assert_fail + 238                                    
5   llc       0x08bca5c5
llvm::ScheduleDAGSDNodes::EmitCopyFromReg(llvm::SDNode*, unsigned int, bool,
bool, unsigned int, llvm::DenseMap<llvm::SDValue, unsigned int,
llvm::DenseMapInfo<llvm::SDValue>, llvm::DenseMapInfo<unsigned int> >&) + 1655  
6   llc       0x08bcae86 llvm::ScheduleDAGSDNodes::EmitNode(llvm::SDNode*,
bool, bool, llvm::DenseMap<llvm::SDValue, unsigned int,
llvm::DenseMapInfo<llvm::SDValue>, llvm::DenseMapInfo<unsigned int> >&) + 2044 
7   llc       0x08bcb428 llvm::ScheduleDAGSDNodes::EmitSchedule() + 438         
8   llc       0x08c390cb llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 4753     
9   llc       0x08c3ab15
llvm::SelectionDAGISel::SelectBasicBlock(llvm::BasicBlock*,
llvm::ilist_iterator<llvm::Instruction>,
llvm::ilist_iterator<llvm::Instruction>) + 487
10  llc       0x08c3b5e0
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function&,
llvm::MachineFunction&, llvm::MachineModuleInfo*, llvm::DwarfWriter*,
llvm::TargetInstrInfo const&) + 2484
11  llc       0x08c3c462
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 886
12  llc       0x088fdf24
13  llc       0x08d2c9ea
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 86
14  llc       0x08fa1d45 llvm::FPPassManager::runOnFunction(llvm::Function&) +
299
15  llc       0x08fa2848 llvm::FunctionPassManagerImpl::run(llvm::Function&) +
124
16  llc       0x08fa2a15 llvm::FunctionPassManager::run(llvm::Function&) + 135
17  llc       0x0847bfa4 main + 3468
18  libc.so.6 0x00bb66e5 __libc_start_main + 229
19  llc       0x0847a1d1
Stack dump:
0.      Program arguments: llc _exit.o
1.      Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on
function '@_exit'
Abort
[~/ellcc/test/source] main%


-- 
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