forked from Imagelibrary/binutils-gdb
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.
29 lines
688 B
Makefile
29 lines
688 B
Makefile
#PROG: objcopy
|
|
#objdump: -dp --prefix-addresses --show-raw-insn
|
|
#name: MIPS ELF file ASE information interpretation for disassembly 1
|
|
|
|
# Verify that in the absence of its ASE flag MDMX code is not disassembled
|
|
# with MIPS64r2, where MDMX presence is not implied.
|
|
|
|
.*: +file format .*mips.*
|
|
!private flags = .*mdmx.*
|
|
|
|
MIPS ABI Flags Version: 0
|
|
|
|
ISA: MIPS64r2
|
|
GPR size: 32
|
|
CPR1 size: 64
|
|
CPR2 size: 0
|
|
FP ABI: Hard float \(32-bit CPU, 64-bit FPU\)
|
|
ISA Extension: None
|
|
ASEs:
|
|
None
|
|
FLAGS 1: .*
|
|
FLAGS 2: .*
|
|
|
|
Disassembly of section \.text:
|
|
[0-9a-f]+ <[^>]*> 7aa2080b .word 0x7aa2080b
|
|
[0-9a-f]+ <[^>]*> 46c520c0 add\.ps \$f3,\$f4,\$f5
|
|
[0-9a-f]+ <[^>]*> 46c83998 addr\.ps \$f6,\$f7,\$f8
|
|
\.\.\.
|