mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
Insn width granularity being 16 bits, producing byte granular output isn't very useful. With there being a way to specific otherwise unknown insns to the assembler, use that same representation (to be precise: its <length>,<encoding> flavor) for disassembly.
12 lines
312 B
Makefile
12 lines
312 B
Makefile
#as: -march=rv32ic
|
|
#objdump: -d
|
|
# Test the disassembly of unknown instruction encodings, specifically,
|
|
# ensure that we generate a .insn directive.
|
|
|
|
#...
|
|
Disassembly of section \.text:
|
|
|
|
[0-9a-f]+ <\.text>:
|
|
[0-9a-f]+: 0052018b \.insn 4, 0x0052018b
|
|
[0-9a-f]+: 9c45 \.insn 2, 0x9c45
|