[LLVMbugs] [Bug 4851] New: [MIPS] main() causes an assert

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Sep 1 05:32:35 PDT 2009


           Summary: [MIPS] main() causes an assert
           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

main() is defined as a varargs function by my parser. The attached test case
fails during code generation:

[~/ellcc/test/source] main% llvm-as main.o.ll
Error opening output file 'main.o.bc'        
Use -f command line argument to force output 
[~/ellcc/test/source] main% llvm-as -f main.o.ll
[~/ellcc/test/source] main% llc main.o.bc
void llvm::SelectionDAGISel::LowerArguments(llvm::BasicBlock*): Assertion
`InVals.size() == Ins.size() && "LowerFormalArguments didn't emit the correct
number of values!"' failed.                                                    
0   llc       0x08fbf4d8                                                        
1   llc       0x08fbfaa4                                                        
2             0x00814400 __kernel_sigreturn + 0
3   libc.so.6 0x00bcce28 abort + 392
4   libc.so.6 0x00bc440e __assert_fail + 238
5   llc       0x08b9ee7b
llvm::SelectionDAGISel::LowerArguments(llvm::BasicBlock*) + 1737
6   llc       0x08bd3767
llvm::MachineFunction&, llvm::MachineModuleInfo*, llvm::DwarfWriter*,
llvm::TargetInstrInfo const&) + 361
7   llc       0x08bd4e30
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 886
8   llc       0x08cc52de
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 86
9   llc       0x08f38669 llvm::FPPassManager::runOnFunction(llvm::Function&) +
10  llc       0x08f3916c llvm::FunctionPassManagerImpl::run(llvm::Function&) +
11  llc       0x08f39339 llvm::FunctionPassManager::run(llvm::Function&) + 135
12  llc       0x0845adea main + 3636
13  libc.so.6 0x00bb66e5 __libc_start_main + 229
14  llc       0x08458fd1
Stack dump:
0.      Program arguments: llc main.o.bc
1.      Running pass 'MIPS DAG->DAG Pattern Instruction Selection' on function
[~/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