forked from wangliu-iscas/binutils-gdb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RISC-V: don't disassemble unrecognized insns as .byte
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.
- Loading branch information
1 parent
8d31d08
commit 144bf37
Showing
4 changed files
with
39 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
#as: -march=rv32ic | ||
#objdump: -d | ||
# Test the disassembly of unknown instruction encodings, specifically, | ||
# ensure that we generate a .?byte opcode. | ||
# ensure that we generate a .insn directive. | ||
|
||
#... | ||
Disassembly of section \.text: | ||
|
||
[0-9a-f]+ <\.text>: | ||
[0-9a-f]+: 0052018b \.4byte 0x52018b | ||
[0-9a-f]+: 9c45 \.2byte 0x9c45 | ||
[0-9a-f]+: 0052018b \.insn 4, 0x0052018b | ||
[0-9a-f]+: 9c45 \.insn 2, 0x9c45 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters