From a2cac51cb03f356e387c44b558aa9b4dfa002130 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 22 Aug 2014 14:41:43 -0700 Subject: [PATCH] aarch64: Fix CFA encoding of vector registers * config/tc-aarch64.c (tc_aarch64_regname_to_dw2regnum): Fix register number for vector register types. --- gas/ChangeLog | 5 +++++ gas/config/tc-aarch64.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index b97523f6a3d..bd007c5c711 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2014-08-22 Richard Henderson + + * config/tc-aarch64.c (tc_aarch64_regname_to_dw2regnum): Fix + register number for vector register types. + 2014-08-22 Maciej W. Rozycki * config/tc-ppc.c (md_assemble): Only set the PPC_APUINFO_VLE diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index 0a65b9d4ccf..da911344518 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -5966,12 +5966,15 @@ tc_aarch64_regname_to_dw2regnum (char *regname) case REG_TYPE_SP_64: case REG_TYPE_R_32: case REG_TYPE_R_64: + return reg->number; + case REG_TYPE_FP_B: case REG_TYPE_FP_H: case REG_TYPE_FP_S: case REG_TYPE_FP_D: case REG_TYPE_FP_Q: - return reg->number; + return reg->number + 64; + default: break; } -- 2.30.2