[LLVMbugs] [Bug 9252] [Linux Kernel] 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
Mon Feb 21 10:26:13 PST 2011


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

Jakob Stoklund Olesen <stoklund at 2pi.dk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #6 from Jakob Stoklund Olesen <stoklund at 2pi.dk> 2011-02-21 12:26:13 CST ---
I filed PR9280 to track the bad diagnostics.

Closing this bug, the source code is invalid.

Instead of 

    asm volatile ("hello" : "+a"(x) : "a"(x));

Simply use:

    asm volatile ("hello" : "+a"(x));

The "+a"(x) constraint both reads and writes the variable.

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