diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-11-02 15:53:43 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-12-05 10:05:45 +0000 |
commit | 2438b771ee07be19d5b01ea55e077dd8b7cef445 (patch) | |
tree | e101b74fec42b0e6a71dde75130cf351af01996d /binutils/testsuite/binutils-all/mips/mips-xpa-virt-3.d | |
parent | 47afa56ee2bba22111df848ebeeec8c0a616ae73 (diff) | |
download | binutils-2438b771ee07be19d5b01ea55e077dd8b7cef445.zip binutils-2438b771ee07be19d5b01ea55e077dd8b7cef445.tar.gz binutils-2438b771ee07be19d5b01ea55e077dd8b7cef445.tar.bz2 |
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.
Diffstat (limited to 'binutils/testsuite/binutils-all/mips/mips-xpa-virt-3.d')
-rw-r--r-- | binutils/testsuite/binutils-all/mips/mips-xpa-virt-3.d | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/testsuite/binutils-all/mips/mips-xpa-virt-3.d b/binutils/testsuite/binutils-all/mips/mips-xpa-virt-3.d index cc4b34c..20c8635 100644 --- a/binutils/testsuite/binutils-all/mips/mips-xpa-virt-3.d +++ b/binutils/testsuite/binutils-all/mips/mips-xpa-virt-3.d @@ -9,5 +9,5 @@ Disassembly of section \.text: [0-9a-f]+ <[^>]*> 40020800 mfc0 v0,c0_random [0-9a-f]+ <[^>]*> 40420800 cfc0 v0,\$1 [0-9a-f]+ <[^>]*> 40620800 mfgc0 v0,c0_random -[0-9a-f]+ <[^>]*> 40620c00 0x40620c00 +[0-9a-f]+ <[^>]*> 40620c00 .word 0x40620c00 \.\.\. |