]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
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>
Thu, 3 Nov 2022 12:49:53 +0000 (12:49 +0000)
commite53fbf5025e59fe6a3481b9c1fe37e4f6cf6e03d
tree018f9f4b6f293bf806c9fc8cb60ef72c1edb47ca
parent78cd9188d0fb3ab8b1c33b4cb54ad85ffa444192
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