]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86-64: Use 32-bit zero idiom for shorter encoding
authorGeorge Hu <integral@archlinux.org>
Mon, 9 Feb 2026 19:22:18 +0000 (20:22 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 9 Feb 2026 19:22:35 +0000 (20:22 +0100)
commitd71a81ab37336fe0b6dd6945ea8c195797bf4800
treead5738e0c8e816665023fc924f18e68b108bc671
parentaf79874ffd4d1f79bd0c040257320d1a6fe6a452
x86-64: Use 32-bit zero idiom for shorter encoding

Replace the 64-bit zero idiom with the 32-bit form. In 64-bit mode,
zeroing the lower 32 bits of a GPR implicitly clears the entire
register. The 32-bit encoding is one byte shorter while preserving
identical semantics.

Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
sysdeps/mach/hurd/x86_64/static-start.S
sysdeps/mach/hurd/x86_64/tst-sig-redzone.c