[GAS][AARCH64]Fix a typo for IP1 register alias.
authorRenlin Li <renlin.li@arm.com>
Wed, 29 Nov 2017 16:00:47 +0000 (16:00 +0000)
committerRenlin Li <renlin.li@arm.com>
Wed, 29 Nov 2017 17:19:59 +0000 (17:19 +0000)
This should be an obvious fix.
It corrects the register number for IP1 to 17.

gas/

2017-11-29  Renlin Li  <renlin.li@arm.com>

* config/tc-aarch64.c (reg_names): Fix IP1 register alias error.
* testsuite/gas/aarch64/register_aliases.s: Add IP0 and IP1 tests.
* testsuite/gas/aarch64/register_aliases.d: Update.

gas/ChangeLog
gas/config/tc-aarch64.c
gas/testsuite/gas/aarch64/register_aliases.d
gas/testsuite/gas/aarch64/register_aliases.s

index 909ac788260d736c980fdfd05e330378785b51fb..0512f23d6ef0b1555ff310804bbe05e228ed59f9 100644 (file)
@@ -1,3 +1,9 @@
+2017-11-29  Renlin Li  <renlin.li@arm.com>
+
+       * config/tc-aarch64.c (reg_names): Fix IP1 register alias typo.
+       * testsuite/gas/aarch64/register_aliases.s: Add IP0 and IP1 tests.
+       * testsuite/gas/aarch64/register_aliases.d: Update.
+
 2017-11-29  Stefan Stroe  <stroestefan@gmail.com>
 
        * po/Make-in (datadir): Define as @datadir@.
index 4ae0624f1e2ccd4de1449cfaee4bf0692c2ed892..832f4e808ac732091ffeaf4834c81c6b8f96eb58 100644 (file)
@@ -6804,7 +6804,7 @@ static const reg_entry reg_names[] = {
   REGSET31 (w, R_32), REGSET31 (W, R_32),
 
   REGDEF_ALIAS (ip0, 16, R_64), REGDEF_ALIAS (IP0, 16, R_64),
-  REGDEF_ALIAS (ip1, 17, R_64), REGDEF_ALIAS (IP1, 16, R_64),
+  REGDEF_ALIAS (ip1, 17, R_64), REGDEF_ALIAS (IP1, 17, R_64),
   REGDEF_ALIAS (fp, 29, R_64), REGDEF_ALIAS (FP, 29, R_64),
   REGDEF_ALIAS (lr, 30, R_64), REGDEF_ALIAS (LR, 30, R_64),
   REGDEF (wsp, 31, SP_32), REGDEF (WSP, 31, SP_32),
index 677d5f0752347750461e92129f139a17a42fdc19..eab63870deeac2a6c8da4d455f8c9dfc9ecfea1d 100644 (file)
@@ -7,4 +7,6 @@ Disassembly of section \.text:
 0+ <.*>:
    0:  8b1e0210        add     x16, x16, x30
    4:  f90003b0        str     x16, \[x29\]
-   8:  f94003b1        ldr     x17, \[x29\]
\ No newline at end of file
+   8:  f94003b1        ldr     x17, \[x29\]
+   c:  f90003b0        str     x16, \[x29\]
+  10:  f94003b1        ldr     x17, \[x29\]
index 5864283881c52d8ada17f8b0dd0ab0d1189d3b10..fcd065078bb52ed38da51e9c0a5f7af423074e96 100644 (file)
@@ -6,4 +6,6 @@
        add     ip0, ip0, lr
        str     ip0, [fp]
        ldr     ip1, [fp]
+       str     IP0, [fp]
+       ldr     IP1, [fp]
 
This page took 0.030904 seconds and 4 git commands to generate.