[Bug inline-asm/95121] Wrong code generated: low-byte registers are silently used in place of their corresponding high-byte registers (ah, bh, ch, dh)

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 14 01:42:53 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95121

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
    register char x __asm__("dh");

Is the same as:
    register char x __asm__("di");

dh and dl are the same register really but the high are low parts can be
modified seperately via some of the 8bit instructions.


More information about the Gcc-bugs mailing list