about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-07-13 14:48:59 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-08-05 19:45:19 +0100
commit2adfa58c4ffeed47c02449717f24b0e8f0a58ecb (patch)
treefd615aeeaad6b1f17dcaaa82ec13e5f99333a65c
parentf8335dc69af32d65c95cf551d950aafb1254d9ce (diff)
downloadglibc-2adfa58c4ffeed47c02449717f24b0e8f0a58ecb.tar.gz
glibc-2adfa58c4ffeed47c02449717f24b0e8f0a58ecb.tar.xz
glibc-2adfa58c4ffeed47c02449717f24b0e8f0a58ecb.zip
aarch64: cleanup MOVL definition in sysdep.h
PTR_REG is for ILP32, there is no point using it under __LP64__.
-rw-r--r--sysdeps/aarch64/sysdep.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/aarch64/sysdep.h b/sysdeps/aarch64/sysdep.h
index 7d71bf7c28..5c8e6d50c2 100644
--- a/sysdeps/aarch64/sysdep.h
+++ b/sysdeps/aarch64/sysdep.h
@@ -204,10 +204,10 @@ GNU_PROPERTY (FEATURE_1_AND, FEATURE_1_BTI)
    Note R is a register number and not a register name.  */
 #ifdef __LP64__
 # define MOVL(R, NAME)					\
-	movz	PTR_REG (R), #:abs_g3:NAME;		\
-	movk	PTR_REG (R), #:abs_g2_nc:NAME;		\
-	movk	PTR_REG (R), #:abs_g1_nc:NAME;		\
-	movk	PTR_REG (R), #:abs_g0_nc:NAME;
+	movz	x##R, #:abs_g3:NAME;			\
+	movk	x##R, #:abs_g2_nc:NAME;			\
+	movk	x##R, #:abs_g1_nc:NAME;			\
+	movk	x##R, #:abs_g0_nc:NAME;
 #else
 # define MOVL(R, NAME)					\
 	movz	PTR_REG (R), #:abs_g1:NAME;		\