[LLVMbugs] [Bug 14741] Inline Assembly does not honor the =A output constraint

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 2 08:50:28 PST 2013


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

Eli Friedman <sharparrow1 at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |sharparrow1 at yahoo.com
         Resolution|                            |INVALID

--- Comment #9 from Eli Friedman <sharparrow1 at yahoo.com> 2013-01-02 10:50:28 CST ---
On x86-64, if the operand to "=A" is a 64-bit integer, it is held entirely in
RAX.  So your inline asm not only fails to correctly clobber RDX, it won't do
what you expect.  (Blindly reusing inline assembly written for x86-32 is not a
good idea.)

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