[AArch64] Print spaces after commas in addresses
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 21 Sep 2016 16:11:52 +0000 (17:11 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 21 Sep 2016 16:11:52 +0000 (17:11 +0100)
commitad43e107eb233dcef8e76da6328aa4e4d74afd84
treec83e777c2b8e0690bccd866e773fcafdd18f8cb3
parentab3b8fcfdb06695d27eaec4eedb019ada4a5713e
[AArch64] Print spaces after commas in addresses

I got an off-list request to make the AArch64 disassembler print
spaces after commas in addresses.  This patch does that.

The same code is used to print operands in "did you mean" errors,
so to keep things consistent, the patch also prints spaces between
operands in those messages.

opcodes/
* aarch64-opc.c (print_immediate_offset_address): Print spaces
after commas in addresses.
(aarch64_print_operand): Likewise.

gas/
* config/tc-aarch64.c (print_operands): Print spaces between
operands.
* testsuite/gas/aarch64/ilp32-basic.d: Expect spaces after ","
in addresses.
* testsuite/gas/aarch64/ldst-reg-imm-post-ind.d: Likewise.
* testsuite/gas/aarch64/ldst-reg-imm-pre-ind.d: Likewise.
* testsuite/gas/aarch64/ldst-reg-pair.d: Likewise.
* testsuite/gas/aarch64/ldst-reg-reg-offset.d: Likewise.
* testsuite/gas/aarch64/ldst-reg-uns-imm.d: Likewise.
* testsuite/gas/aarch64/ldst-reg-unscaled-imm.d: Likewise.
* testsuite/gas/aarch64/reloc-insn.d: Likewise.
* testsuite/gas/aarch64/sve.d: Likewise.
* testsuite/gas/aarch64/symbol.d: Likewise.
* testsuite/gas/aarch64/system.d: Likewise.
* testsuite/gas/aarch64/tls-desc.d: Likewise.
* testsuite/gas/aarch64/sve-invalid.l: Expect spaces after ","
in suggested alternatives.
* testsuite/gas/aarch64/verbose-error.l: Likewise.

ld/
* testsuite/ld-aarch64/emit-relocs-28.d: Expect spaces after ","
in addresses.
* testsuite/ld-aarch64/emit-relocs-301-be.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-301.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-302-be.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-302.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-310-be.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-310.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-313.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-515-be.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-515.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-516-be.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-516.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-531.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-532.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-533.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-534.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-535.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-536.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-537.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-538.d: Likewise.
* testsuite/ld-aarch64/erratum835769.d: Likewise.
* testsuite/ld-aarch64/erratum843419.d: Likewise.
* testsuite/ld-aarch64/farcall-b-plt.d: Likewise.
* testsuite/ld-aarch64/farcall-bl-plt.d: Likewise.
* testsuite/ld-aarch64/gc-plt-relocs.d: Likewise.
* testsuite/ld-aarch64/ifunc-21.d: Likewise.
* testsuite/ld-aarch64/ifunc-7c.d: Likewise.
* testsuite/ld-aarch64/tls-desc-ie.d: Likewise.
* testsuite/ld-aarch64/tls-large-desc-be.d: Likewise.
* testsuite/ld-aarch64/tls-large-desc.d: Likewise.
* testsuite/ld-aarch64/tls-large-ie-be.d: Likewise.
* testsuite/ld-aarch64/tls-large-ie.d: Likewise.
* testsuite/ld-aarch64/tls-relax-all.d: Likewise.
* testsuite/ld-aarch64/tls-relax-gd-ie.d: Likewise.
* testsuite/ld-aarch64/tls-relax-gdesc-ie-2.d: Likewise.
* testsuite/ld-aarch64/tls-relax-gdesc-ie.d: Likewise.
* testsuite/ld-aarch64/tls-relax-large-desc-ie-be.d: Likewise.
* testsuite/ld-aarch64/tls-relax-large-desc-ie.d: Likewise.
* testsuite/ld-aarch64/tls-tiny-desc.d: Likewise.
* testsuite/ld-aarch64/tls-tiny-gd.d: Likewise.
59 files changed:
gas/ChangeLog
gas/config/tc-aarch64.c
gas/testsuite/gas/aarch64/ilp32-basic.d
gas/testsuite/gas/aarch64/ldst-reg-imm-post-ind.d
gas/testsuite/gas/aarch64/ldst-reg-imm-pre-ind.d
gas/testsuite/gas/aarch64/ldst-reg-pair.d
gas/testsuite/gas/aarch64/ldst-reg-reg-offset.d
gas/testsuite/gas/aarch64/ldst-reg-uns-imm.d
gas/testsuite/gas/aarch64/ldst-reg-unscaled-imm.d
gas/testsuite/gas/aarch64/reloc-insn.d
gas/testsuite/gas/aarch64/sve-invalid.l
gas/testsuite/gas/aarch64/sve.d
gas/testsuite/gas/aarch64/symbol.d
gas/testsuite/gas/aarch64/system.d
gas/testsuite/gas/aarch64/tls-desc.d
gas/testsuite/gas/aarch64/verbose-error.l
ld/ChangeLog
ld/testsuite/ld-aarch64/emit-relocs-28.d
ld/testsuite/ld-aarch64/emit-relocs-301-be.d
ld/testsuite/ld-aarch64/emit-relocs-301.d
ld/testsuite/ld-aarch64/emit-relocs-302-be.d
ld/testsuite/ld-aarch64/emit-relocs-302.d
ld/testsuite/ld-aarch64/emit-relocs-310-be.d
ld/testsuite/ld-aarch64/emit-relocs-310.d
ld/testsuite/ld-aarch64/emit-relocs-313.d
ld/testsuite/ld-aarch64/emit-relocs-515-be.d
ld/testsuite/ld-aarch64/emit-relocs-515.d
ld/testsuite/ld-aarch64/emit-relocs-516-be.d
ld/testsuite/ld-aarch64/emit-relocs-516.d
ld/testsuite/ld-aarch64/emit-relocs-531.d
ld/testsuite/ld-aarch64/emit-relocs-532.d
ld/testsuite/ld-aarch64/emit-relocs-533.d
ld/testsuite/ld-aarch64/emit-relocs-534.d
ld/testsuite/ld-aarch64/emit-relocs-535.d
ld/testsuite/ld-aarch64/emit-relocs-536.d
ld/testsuite/ld-aarch64/emit-relocs-537.d
ld/testsuite/ld-aarch64/emit-relocs-538.d
ld/testsuite/ld-aarch64/erratum835769.d
ld/testsuite/ld-aarch64/erratum843419.d
ld/testsuite/ld-aarch64/farcall-b-plt.d
ld/testsuite/ld-aarch64/farcall-bl-plt.d
ld/testsuite/ld-aarch64/gc-plt-relocs.d
ld/testsuite/ld-aarch64/ifunc-21.d
ld/testsuite/ld-aarch64/ifunc-7c.d
ld/testsuite/ld-aarch64/tls-desc-ie.d
ld/testsuite/ld-aarch64/tls-large-desc-be.d
ld/testsuite/ld-aarch64/tls-large-desc.d
ld/testsuite/ld-aarch64/tls-large-ie-be.d
ld/testsuite/ld-aarch64/tls-large-ie.d
ld/testsuite/ld-aarch64/tls-relax-all.d
ld/testsuite/ld-aarch64/tls-relax-gd-ie.d
ld/testsuite/ld-aarch64/tls-relax-gdesc-ie-2.d
ld/testsuite/ld-aarch64/tls-relax-gdesc-ie.d
ld/testsuite/ld-aarch64/tls-relax-large-desc-ie-be.d
ld/testsuite/ld-aarch64/tls-relax-large-desc-ie.d
ld/testsuite/ld-aarch64/tls-tiny-desc.d
ld/testsuite/ld-aarch64/tls-tiny-gd.d
opcodes/ChangeLog
opcodes/aarch64-opc.c