www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9972] New: [asm] missing REX.B when addressing some byte registers

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9972

           Summary: [asm] missing REX.B when addressing some byte
                    registers
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: code dawg.eu


--- Comment #0 from Martin Nowak <code dawg.eu> 2013-04-21 03:50:01 PDT ---
cat > bug.d << CODE
void bug()
{
    asm
    {
        naked;
        mov DH, 0;
        mov SIL, 0;
    }
}
CODE

dmd -c -m64 bug.d

----

The `mov SIL, 0` is missing a REX.B prefix thus is actually `mov DH, 0`.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 21 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9972


Martin Nowak <code dawg.eu> changed:

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


--- Comment #1 from Martin Nowak <code dawg.eu> 2013-04-21 04:02:07 PDT ---
*** This issue has been marked as a duplicate of issue 9965 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 21 2013