[LLVMbugs] [Bug 9252] New: lib/CodeGen/TwoAddressInstructionPass.cpp:1138: virtual bool<unnamed>::TwoAddressInstructionPass::runOnMachineFunction(llvm::MachineFunction&): Assertion `i == DstIdx || !mi->getOperand(i).isReg() || mi->getOperand(i).getReg() != regA' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 19 01:59:58 PST 2011


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

           Summary: lib/CodeGen/TwoAddressInstructionPass.cpp:1138:
                    virtual
                    bool<unnamed>::TwoAddressInstructionPass::runOnMachine
                    Function(llvm::MachineFunction&): Assertion `i ==
                    DstIdx || !mi->getOperand(i).isReg() ||
                    mi->getOperand(i).getReg() != regA' failed
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 4068


Created an attachment (id=6180)
 --> (http://llvm.org/bugs/attachment.cgi?id=6180)
reduced bitcode testcase

When compiling emulate.c from the Linux kernel:

llc:
/home/edwin/HDD/edwin/llvm-git/offi/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp:1138:
virtual
bool<unnamed>::TwoAddressInstructionPass::runOnMacnction(llvm::MachineFunction&):
Assertion `i == DstIdx || !mi->getOperand(i).isReg() ||
mi->getOperand(i).getReg() != regA' failed.
0  llc             0x0000000000b9a4cf
1  llc             0x0000000000b9c732
2  libpthread.so.0 0x0000003f36a0ef60
3  libc.so.6       0x0000003f35e32165 gsignal + 53
4  libc.so.6       0x0000003f35e34f70 abort + 384
5  libc.so.6       0x0000003f35e2b2b1 __assert_fail + 241
6  llc             0x00000000008ca1c3
7  llc             0x0000000000ae9d0d
llvm::FPPassManager::runOnFunction(llvm::Function&) + 557
8  llc             0x0000000000ae9e0b
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
9  llc             0x0000000000ae9897
llvm::MPPassManager::runOnModule(llvm::Module&) + 503
10 llc             0x0000000000ae9a17 llvm::PassManagerImpl::run(llvm::Module&)
+ 167
11 llc             0x000000000050523d main + 3885
12 libc.so.6       0x0000003f35e1ec4d __libc_start_main + 253
13 llc             0x00000000005031c9
Stack dump:
0.      Program arguments: llc x.ll 
1.      Running pass 'Function Pass Manager' on module 'x.ll'.
2.      Running pass 'Two-Address instruction pass' on function
'@x86_emulate_insn'
Aborted

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