crypto: x86/poly1305 - Use TEST %reg,%reg instead of CMP $0,%reg
authorUros Bizjak <ubizjak@gmail.com>
Fri, 27 Nov 2020 10:18:12 +0000 (11:18 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 4 Dec 2020 07:13:16 +0000 (18:13 +1100)
commitbe169fe3cec9efe2bfff98b3f645bca6cc7d09cd
tree86e49b23852f31a5618a4086ca22ab641c312dd0
parent0b837f1ef8822a8df880ffba6778ba42f707b83d
crypto: x86/poly1305 - Use TEST %reg,%reg instead of CMP $0,%reg

CMP $0,%reg can't set overflow flag, so we can use shorter TEST %reg,%reg
instruction when only zero and sign flags are checked (E,L,LE,G,GE conditions).

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Borislav Petkov <bp@alien8.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/poly1305-x86_64-cryptogams.pl