[LLVMbugs] [Bug 6283] New: Assertion "invalid register-register move instruction" in ' Simple Register Coalescing' failed

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Feb 12 05:11:14 PST 2010


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

           Summary: Assertion "invalid register-register move instruction"
                    in 'Simple Register Coalescing' failed
           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: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=4217)
 --> (http://llvm.org/bugs/attachment.cgi?id=4217)
testcase .ll

This breaks the dragonegg self-host build.

$ llc reg.ll
llc: llvm/lib/Target/X86/X86InstrInfo.cpp:706: virtual bool
llvm::X86InstrInfo::isMoveInstr(const llvm::MachineInstr&, unsigned int&,
unsigned int&, unsigned int&, unsigned int&) const: Assertion
`MI.getNumOperands() >= 2 && MI.getOperand(0).isReg() &&
MI.getOperand(1).isReg() && "invalid register-register move instruction"'
failed.
...
llvm::X86InstrInfo::isMoveInstr(llvm::MachineInstr const&, unsigned int&,
unsigned int&, unsigned int&, unsigned int&) const + 535
7  llc       0x0000000001389e4b
llvm::LiveIntervals::getVNInfoSourceReg(llvm::VNInfo const*) const + 511
8  llc       0x0000000001307847
llvm::SimpleRegisterCoalescing::JoinIntervals(llvm::LiveInterval&,
llvm::LiveInterval&, bool&) + 2901
9  llc       0x0000000001305493
llvm::SimpleRegisterCoalescing::JoinCopy(llvm::CopyRec&, bool&) + 7585
10 llc       0x00000000013088f2
llvm::SimpleRegisterCoalescing::CopyCoalesceInMBB(llvm::MachineBasicBlock*,
std::vector<llvm::CopyRec, std::allocator<llvm::CopyRec> >&) + 1226
11 llc       0x0000000001308c60 llvm::SimpleRegisterCoalescing::joinIntervals()
+ 624
12 llc       0x00000000013096ef
llvm::SimpleRegisterCoalescing::runOnMachineFunction(llvm::MachineFunction&) +
827
...
Stack dump:
0.      Program arguments: llc reg.ll 
1.      Running pass 'Simple Register Coalescing' on function
'@get_computation_cost_at'
Aborted (core dumped)


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