aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-aarch64.c
diff options
context:
space:
mode:
authorMatthieu Longo <matthieu.longo@arm.com>2024-06-07 16:59:57 +0100
committerMatthieu Longo <matthieu.longo@arm.com>2024-11-08 11:35:46 +0000
commite308b2999c79799683c30f4ed4f121d2940a92aa (patch)
tree80889b589c5b5fbd4cd229c847d8440de8705213 /gas/config/tc-aarch64.c
parent46dace1933f6e9c367edb97c60c23bdac9d040b3 (diff)
downloadgdb-e308b2999c79799683c30f4ed4f121d2940a92aa.zip
gdb-e308b2999c79799683c30f4ed4f121d2940a92aa.tar.gz
gdb-e308b2999c79799683c30f4ed4f121d2940a92aa.tar.bz2
aarch64: remove redundant register type R_N
The register type R_N is redundant with R_ZR_SP. This patch removes it, and replaces its usage by R_ZR_SP.
Diffstat (limited to 'gas/config/tc-aarch64.c')
-rw-r--r--gas/config/tc-aarch64.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
index d272a57..c706f92 100644
--- a/gas/config/tc-aarch64.c
+++ b/gas/config/tc-aarch64.c
@@ -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;