-
- Downloads
x86/asm: Replace "MOVQ $imm, %reg" with MOVL
There is no reason to use MOVQ to load a non-negative immediate constant value into a 64-bit register. MOVL does the same, since the upper 32 bits are zero-extended by the CPU. This makes the code a bit smaller, while leaving functionality unchanged. Signed-off-by:Denys Vlasenko <dvlasenk@redhat.com> Cc: Alexei Starovoitov <ast@plumgrid.com> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Borislav Petkov <bp@alien8.de> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Kees Cook <keescook@chromium.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Will Drewry <wad@chromium.org> Link: http://lkml.kernel.org/r/1427821211-25099-8-git-send-email-dvlasenk@redhat.com Signed-off-by:
Ingo Molnar <mingo@kernel.org>
Showing
- arch/x86/crypto/crc32c-pcl-intel-asm_64.S 1 addition, 1 deletionarch/x86/crypto/crc32c-pcl-intel-asm_64.S
- arch/x86/crypto/twofish-x86_64-asm_64.S 2 additions, 2 deletionsarch/x86/crypto/twofish-x86_64-asm_64.S
- arch/x86/kernel/relocate_kernel_64.S 4 additions, 4 deletionsarch/x86/kernel/relocate_kernel_64.S
Loading
Please register or sign in to comment