Messages in this thread | | | From | Kanna Scarlet <> | Subject | [PATCH 0/1] x86 change mov 0, %reg to xor %reg, %reg | Date | Thu, 4 Aug 2022 15:26:54 +0000 |
| |
Hello Linux x86 maintainers,
I'm an informatic student 19 y.o. I am still studying Linux kernel open source in GNU/Weeb community. I want to be a linux kerne dev in the future. This is my first time sending a patch to Linux Kernel, I am still learning the community. I may make a mistake in this email, please correct me if i am wrong
I want to improve x86-64 assembly code with this patch. This patch changes mov $0, %reg with xor %reg, %reg because xor %reg, %reg is smaller so it is good to save space
asm: ba 00 00 00 00 mov $0x0,%edx 31 d2 xor %edx,%edx
Regards,
Signed-off-by: Kanna Scarlet <knscarlet@gnuweeb.org> ---
Kanna Scarlet (1): x86: Change mov $0, %reg with xor %reg, %reg
arch/x86/boot/compressed/head_64.S | 2 +- arch/x86/boot/compressed/mem_encrypt.S | 2 +- arch/x86/kernel/ftrace_32.S | 4 ++-- arch/x86/kernel/head_64.S | 2 +- arch/x86/math-emu/div_Xsig.S | 2 +- arch/x86/math-emu/reg_u_sub.S | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-)
base-commit: ff89dd08c0f0a3fd330c9ef9d775e880f82c291e -- Kanna Scarlet
| |