x86/boot/compressed/64: Use TEST %reg,%reg instead of CMP $0,%reg
authorUros Bizjak <ubizjak@gmail.com>
Thu, 29 Oct 2020 16:02:58 +0000 (17:02 +0100)
committerBorislav Petkov <bp@suse.de>
Sat, 21 Nov 2020 09:26:25 +0000 (10:26 +0100)
commitab09b58e4bdfdbcec425e54ebeaf6e209a96318f
tree0b9c659eaf9edf23f0a0c90aa8cc829f97f97792
parent61b39ad9a7d26fe14a2f5f23e5e940e7f9664d41
x86/boot/compressed/64: Use TEST %reg,%reg instead of CMP $0,%reg

Use TEST %reg,%reg which sets the zero flag in the same way as CMP
$0,%reg, but the encoding uses one byte less.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20201029160258.139216-1-ubizjak@gmail.com
arch/x86/boot/compressed/head_64.S