Re: [PATCH] x86/entry/64: Use TEST %reg,%reg instead of CMP $0,%reg

From: Andy Lutomirski
Date: Thu Oct 29 2020 - 10:42:41 EST


On Thu, Oct 29, 2020 at 7:29 AM Uros Bizjak <ubizjak@xxxxxxxxx> wrote:
>
> Use TEST %reg,%reg which sets the zero flag in the same way
> as CMP $0,%reg, but the encoding uses one byte less.

This will make a Linux distro fit on an embedded device that
previously had four bytes too little flash :)

Reviewed-by: Andy Lutomirski <luto@xxxxxxxxxx>