aarch64: Fix CFA encoding of vector registers
authorRichard Henderson <rth@twiddle.net>
Fri, 22 Aug 2014 21:41:43 +0000 (14:41 -0700)
committerRichard Henderson <rth@twiddle.net>
Fri, 22 Aug 2014 21:41:43 +0000 (14:41 -0700)
* config/tc-aarch64.c (tc_aarch64_regname_to_dw2regnum): Fix
register number for vector register types.

gas/ChangeLog
gas/config/tc-aarch64.c

index b97523f6a3d897fdad2406a3d4aea1a8ea9d79fe..bd007c5c711b00355b84d09c19f86fb106343260 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-22  Richard Henderson  <rth@redhat.com>
+
+       * config/tc-aarch64.c (tc_aarch64_regname_to_dw2regnum): Fix
+       register number for vector register types.
+
 2014-08-22  Maciej W. Rozycki  <macro@codesourcery.com>
 
        * config/tc-ppc.c (md_assemble): Only set the PPC_APUINFO_VLE
index 0a65b9d4ccf15193a0200c7243059dcdbb771613..da911344518dda58e4b937cc31ab01d6e843af02 100644 (file)
@@ -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;
     }