aboutsummaryrefslogtreecommitdiff
path: root/opcodes/aarch64-opc.c
diff options
context:
space:
mode:
authorYufeng Zhang <yufeng.zhang@arm.com>2014-02-27 14:55:46 +0000
committerYufeng Zhang <yufeng.zhang@arm.com>2014-02-27 14:55:46 +0000
commita58549dda5a060d3cadb05dbf54c607a8efb8092 (patch)
tree338ff64b52214ed134099c9bfc8ed72695c42f0e /opcodes/aarch64-opc.c
parent2fa0369e5127bff4ea68b596b1984314feb68299 (diff)
downloadgdb-a58549dda5a060d3cadb05dbf54c607a8efb8092.zip
gdb-a58549dda5a060d3cadb05dbf54c607a8efb8092.tar.gz
gdb-a58549dda5a060d3cadb05dbf54c607a8efb8092.tar.bz2
opcodes/
* aarch64-opc.c (print_register_offset_address): Call get_int_reg_name to prepare the register name. gas/testsuite/ * gas/aarch64/ldst-reg-reg-offset.s: Add tests. * gas/aarch64/ldst-reg-reg-offset.d: Update.
Diffstat (limited to 'opcodes/aarch64-opc.c')
-rw-r--r--opcodes/aarch64-opc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c
index 4313327..a84c758 100644
--- a/opcodes/aarch64-opc.c
+++ b/opcodes/aarch64-opc.c
@@ -2282,9 +2282,12 @@ print_register_offset_address (char *buf, size_t size,
else
tb[0] = '\0';
- snprintf (buf, size, "[%s,%c%d%s]",
+ snprintf (buf, size, "[%s,%s%s]",
get_64bit_int_reg_name (opnd->addr.base_regno, 1),
- wm_p ? 'w' : 'x', opnd->addr.offset.regno, tb);
+ get_int_reg_name (opnd->addr.offset.regno,
+ wm_p ? AARCH64_OPND_QLF_W : AARCH64_OPND_QLF_X,
+ 0 /* sp_reg_p */),
+ tb);
}
/* Generate the string representation of the operand OPNDS[IDX] for OPCODE