mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-10 01:52:28 +08:00

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.
18 lines
604 B
Makefile
18 lines
604 B
Makefile
#PROG: objcopy
|
|
#objdump: -m mips:isa32r6 -d --prefix-addresses --show-raw-insn
|
|
#name: MIPS32r6 branch instruction alias disassembly
|
|
#source: mips-branch-alias.s
|
|
|
|
.*: +file format .*mips.*
|
|
|
|
Disassembly of section \.text:
|
|
[0-9a-f]+ <[^>]*> 10000000 b [0-9a-f]+ <[^>]*>
|
|
[0-9a-f]+ <[^>]*> 04010000 b [0-9a-f]+ <[^>]*>
|
|
[0-9a-f]+ <[^>]*> 04110000 bal [0-9a-f]+ <[^>]*>
|
|
[0-9a-f]+ <[^>]*> 04100000 nal
|
|
[0-9a-f]+ <[^>]*> 10200000 beqz at,[0-9a-f]+ <[^>]*>
|
|
[0-9a-f]+ <[^>]*> 14200000 bnez at,[0-9a-f]+ <[^>]*>
|
|
[0-9a-f]+ <[^>]*> 50200000 .word 0x50200000
|
|
[0-9a-f]+ <[^>]*> 54200000 .word 0x54200000
|
|
\.\.\.
|