summaryrefslogtreecommitdiff
path: root/arch/loongarch/lib/clear_user.S
diff options
context:
space:
mode:
authorWANG Xuerui <git@xen0n.name>2022-07-26 18:57:21 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2022-07-29 13:22:32 +0300
commit1fdb9a92495a6b6996530d27781892796e22f08b (patch)
tree05a8a33f18dd9b21e06402162d5542c3406803d6 /arch/loongarch/lib/clear_user.S
parentd1bc75d7595b237f78b594509ea7cc159f98cae9 (diff)
downloadlinux-1fdb9a92495a6b6996530d27781892796e22f08b.tar.xz
LoongArch: Simplify "BGT foo, zero" with BGTZ
Support for the syntactic sugar is present in upstream binutils port from the beginning. Use it for shorter lines and better consistency. Generated code should be identical. Signed-off-by: WANG Xuerui <git@xen0n.name> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/lib/clear_user.S')
-rw-r--r--arch/loongarch/lib/clear_user.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/lib/clear_user.S b/arch/loongarch/lib/clear_user.S
index 25d9be5fbb19..16ba2b8dd68a 100644
--- a/arch/loongarch/lib/clear_user.S
+++ b/arch/loongarch/lib/clear_user.S
@@ -32,7 +32,7 @@ SYM_FUNC_START(__clear_user)
1: st.b zero, a0, 0
addi.d a0, a0, 1
addi.d a1, a1, -1
- bgt a1, zero, 1b
+ bgtz a1, 1b
2: move a0, a1
jr ra