Bug 9972 – [asm] missing REX.B when addressing some byte registers

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2013-04-21T03:50:00Z
Last change time
2013-04-21T04:02:07Z
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2013-04-21T03:50:01Z
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 by code — 2013-04-21T04:02:07Z
*** This issue has been marked as a duplicate of issue 9965 ***