[glibc/arm/morello/main] aarch64: cleanup MOVL definition in sysdep.h

Szabolcs Nagy nsz@sourceware.org
Fri Aug 5 19:30:10 GMT 2022


https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2adfa58c4ffeed47c02449717f24b0e8f0a58ecb

commit 2adfa58c4ffeed47c02449717f24b0e8f0a58ecb
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Wed Jul 13 14:48:59 2022 +0100

    aarch64: cleanup MOVL definition in sysdep.h
    
    PTR_REG is for ILP32, there is no point using it under __LP64__.

Diff:
---
 sysdeps/aarch64/sysdep.h | 8 ++++----
 1 file 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;		\


More information about the Glibc-cvs mailing list