Bug 20207 – (inline asm) DMD (x64) assembles code that contains both REX and high byte of a general purpouse register

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2019-09-12T09:56:39Z
Last change time
2024-12-13T19:05:30Z
Keywords
iasm
Assigned to
No Owner
Creator
Eugen Ajechiloae
Moved to GitHub: dmd#17922 →

Comments

Comment #0 by eugenajechiloae — 2019-09-12T09:56:39Z
The following code assembles: add R12B, AH. When there is REX prefix, the high byte of the general purpouse registers can't be used, so this should not assemble. As expected, the instruction above actually does -- add R12B, SPL -- (adding SPL instead of AH).
Comment #1 by robert.schadek — 2024-12-13T19:05:30Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17922 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB