]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite72d783d6c34a3483cb9b4b1d304ad50d36a0e1a
tree78ace17ff4fec7785d9a0622d51357afc6810087
parent55ba37c33c09a91410762e3102a456de461c8efd
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