LoongArch: Simplify "BEQ/BNE foo, zero" with BEQZ/BNEZ
authorWANG Xuerui <git@xen0n.name>
Tue, 26 Jul 2022 15:57:19 +0000 (23:57 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 29 Jul 2022 10:22:32 +0000 (18:22 +0800)
commitd47b2dc87c58154052daf8ac0f9229db5c7890cc
tree78ace17ff4fec7785d9a0622d51357afc6810087
parent57ce5d3eefacfaadfe2ed0a3a85713d1ae6287b9
LoongArch: Simplify "BEQ/BNE foo, zero" with BEQZ/BNEZ

While B{EQ,NE}Z and B{EQ,NE} are different instructions, and the vastly
expanded range for branch destination does not really matter in the few
cases touched, use the B{EQ,NE}Z where possible for shorter lines and
better consistency (e.g. some places used "BEQ foo, zero", while some
used "BEQ zero, foo").

Signed-off-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/atomic.h
arch/loongarch/include/asm/cmpxchg.h
arch/loongarch/include/asm/futex.h
arch/loongarch/mm/tlbex.S