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.