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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 21 03:50:04 PDT 2013


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 at puremagic.com
        ReportedBy: code at dawg.eu


--- Comment #0 from Martin Nowak <code at 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: -------


More information about the Digitalmars-d-bugs mailing list