]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
aarch64: remove redundant register type R_N
authorMatthieu Longo <matthieu.longo@arm.com>
Fri, 7 Jun 2024 15:59:57 +0000 (16:59 +0100)
committerMatthieu Longo <matthieu.longo@arm.com>
Fri, 8 Nov 2024 11:35:46 +0000 (11:35 +0000)
The register type R_N is redundant with R_ZR_SP. This patch removes it,
and replaces its usage by R_ZR_SP.

gas/config/tc-aarch64.c

index d272a5735fe13c222a22d4a4849d9c441eaf66a7..c706f920f15a0ab988ded294ee8da74973fa5f1a 100644 (file)
@@ -346,10 +346,6 @@ struct reloc_entry
                 | REG_TYPE(FP_B) | REG_TYPE(FP_H)                      \
                 | REG_TYPE(FP_S) | REG_TYPE(FP_D) | REG_TYPE(FP_Q)     \
                 | REG_TYPE(Z) | REG_TYPE(P) | REG_TYPE(PN))            \
-  /* Any integer register; used for error messages only.  */           \
-  MULTI_REG_TYPE(R_N, REG_TYPE(R_32) | REG_TYPE(R_64)                  \
-                | REG_TYPE(SP_32) | REG_TYPE(SP_64)                    \
-                | REG_TYPE(ZR_32) | REG_TYPE(ZR_64))                   \
   /* Any vector register.  */                                          \
   MULTI_REG_TYPE(VZ, REG_TYPE(V) | REG_TYPE(Z))                                \
   /* An SVE vector or predicate register.  */                          \
@@ -4640,7 +4636,7 @@ static bool
 parse_sme_immediate (char **str, int64_t *imm)
 {
   int64_t val;
-  if (! parse_constant_immediate (str, &val, REG_TYPE_R_N))
+  if (! parse_constant_immediate (str, &val, REG_TYPE_R_ZR_SP))
     return false;
 
   *imm = val;