[Bug target/80013] [ms_abi-windows x86-64] A Pointer Size 64-bit Wide or 32-bit Wide?

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Mar 12 23:10:00 GMT 2017


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

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

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
 790 0a6d 31C9                  xor     ecx, ecx /* Since the 1st argument is a
pointer type, Isn't this suppose to be rcx? */

xor will zero extend the register to 64bit.
So this is still the smallest way to zero a register even in 64bit.


More information about the Gcc-bugs mailing list