D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 9972 - [asm] missing REX.B when addressing some byte registers
Summary: [asm] missing REX.B when addressing some byte registers
Status: RESOLVED DUPLICATE of issue 9965
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-21 03:50 UTC by Martin Nowak
Modified: 2013-04-21 04:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Nowak 2013-04-21 03:50:01 UTC
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`.
Comment 1 Martin Nowak 2013-04-21 04:02:07 UTC

*** This issue has been marked as a duplicate of issue 9965 ***