opcodes/mips: use .word/.short for undefined instructions
authorAndrew Burgess <aburgess@redhat.com>
Wed, 2 Nov 2022 15:53:43 +0000 (15:53 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 5 Dec 2022 10:05:45 +0000 (10:05 +0000)
commit2438b771ee07be19d5b01ea55e077dd8b7cef445
treee101b74fec42b0e6a71dde75130cf351af01996d
parent47afa56ee2bba22111df848ebeeec8c0a616ae73
opcodes/mips: use .word/.short for undefined instructions

While working on disassembler styling for MIPS, I noticed that
undefined instructions are printed by the disassembler as raw number
with no assembler directive prefix (e.g. without .word or .short).

I think adding something like .word, or .short, helps to make it
clearer the size of the value that is being displayed, and is inline
with what many of the other libopcode disassemblers do.

In this commit I've added the .word and .short directives, and updated
all the tests that I spotted that failed as a result.
24 files changed:
binutils/testsuite/binutils-all/mips/mips-ase-1.d
binutils/testsuite/binutils-all/mips/mips-xpa-virt-1.d
binutils/testsuite/binutils-all/mips/mips-xpa-virt-2.d
binutils/testsuite/binutils-all/mips/mips-xpa-virt-3.d
binutils/testsuite/binutils-all/mips/mips1-branch-alias.d
binutils/testsuite/binutils-all/mips/mips1-branch-noalias.d
binutils/testsuite/binutils-all/mips/mips16-extend-noinsn.d
binutils/testsuite/binutils-all/mips/mips16-pcrel.d
binutils/testsuite/binutils-all/mips/mips32r6-branch-alias.d
binutils/testsuite/binutils-all/mips/mips32r6-branch-noalias.d
gas/testsuite/gas/mips/interaptiv-mr2@mcu.d
gas/testsuite/gas/mips/mips16-32@mips16-asmacro.d
gas/testsuite/gas/mips/mips16-32@mips16-sub.d
gas/testsuite/gas/mips/mips16-32@mips16e-64-sub.d
gas/testsuite/gas/mips/mips16-32@mips16e-sub.d
gas/testsuite/gas/mips/mips16@save-sub.d
gas/testsuite/gas/mips/mips1@isa-override-1.d
gas/testsuite/gas/mips/mips1@save-sub.d
gas/testsuite/gas/mips/mips2@isa-override-1.d
gas/testsuite/gas/mips/mips32@isa-override-1.d
gas/testsuite/gas/mips/mips32r2@isa-override-1.d
gas/testsuite/gas/mips/set-arch.d
gas/testsuite/gas/mips/tls-o32.d
opcodes/mips-dis.c