diff options
author | Uros Bizjak <[email protected]> | 2024-01-24 11:38:59 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2024-03-01 12:47:37 +0100 |
commit | 721f791ce1cddfa5f2bf524ac14741bfa0f72697 (patch) | |
tree | d3e38ba1c8505147a4fbf5c1c3202a26ea486908 /lib/test-string_helpers.c | |
parent | 891f8890a4a3663da7056542757022870b499bc1 (diff) |
x86/boot: Use 32-bit XOR to clear registers
x86_64 zero extends 32-bit operations, so for 64-bit operands,
XORL r32,r32 is functionally equal to XORQ r64,r64, but avoids
a REX prefix byte when legacy registers are used.
Slightly smaller code generated, no change in functionality.
Signed-off-by: Uros Bizjak <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions