PowerPC disassembler: Don't emit trailing spaces
authorAlan Modra <amodra@gmail.com>
Thu, 4 Apr 2019 22:50:16 +0000 (09:20 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 5 Apr 2019 01:50:49 +0000 (12:20 +1030)
commitc2b1c2754526acff8aae2fe8f5a56c2dd11d0b7f
tree86c506f4975df44a54e4ab0398dc9118eef9100f
parent82477cd28aac011c884d75a429d47a0523cbac26
PowerPC disassembler: Don't emit trailing spaces

When an instruction has operands, the PowerPC disassembler prints
spaces after the opcode so as to line up operands.  If the operands
are all optional and all default value, then no operands are printed,
leaving trailing spaces.  This patch fixes that.

opcodes/
* ppc-dis.c (print_insn_powerpc): Delay printing spaces after
opcode until first operand is output.
gas/
* testsuite/gas/ppc/476.d: Remove trailing spaces.
* testsuite/gas/ppc/a2.d: Likewise.
* testsuite/gas/ppc/booke.d: Likewise.
* testsuite/gas/ppc/booke_xcoff.d: Likewise.
* testsuite/gas/ppc/e500.d: Likewise.
* testsuite/gas/ppc/e500mc.d: Likewise.
* testsuite/gas/ppc/e6500.d: Likewise.
* testsuite/gas/ppc/htm.d: Likewise.
* testsuite/gas/ppc/power6.d: Likewise.
* testsuite/gas/ppc/power8.d: Likewise.
* testsuite/gas/ppc/power9.d: Likewise.
* testsuite/gas/ppc/vle.d: Likewise.
ld/
* testsuite/ld-powerpc/tlsexe32.d: Remove trailing spaces.
* testsuite/ld-powerpc/tlsopt5.d: Likewise.
* testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
19 files changed:
gas/ChangeLog
gas/testsuite/gas/ppc/476.d
gas/testsuite/gas/ppc/a2.d
gas/testsuite/gas/ppc/booke.d
gas/testsuite/gas/ppc/booke_xcoff.d
gas/testsuite/gas/ppc/e500.d
gas/testsuite/gas/ppc/e500mc.d
gas/testsuite/gas/ppc/e6500.d
gas/testsuite/gas/ppc/htm.d
gas/testsuite/gas/ppc/power6.d
gas/testsuite/gas/ppc/power8.d
gas/testsuite/gas/ppc/power9.d
gas/testsuite/gas/ppc/vle.d
ld/ChangeLog
ld/testsuite/ld-powerpc/tlsexe32.d
ld/testsuite/ld-powerpc/tlsopt5.d
ld/testsuite/ld-powerpc/tlsopt5_32.d
opcodes/ChangeLog
opcodes/ppc-dis.c