]> 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)
commit313df3196075c077aa139a60a7b211dcb2609774
tree78ace17ff4fec7785d9a0622d51357afc6810087
parentf084bd09c6f244f381dcdcb222f4e23d7ce054dc
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