-
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.
`riscv_disassemble_data' has an ability to print 8-byte data with .dword but this is not utilized. This is possibly because, XLEN was not set before disassembling an instruction. Since prerequisite commits now set XLEN in `riscv_get_disassembler', it's now safe to use .dword on RV64. gas/ChangeLog: * testsuite/gas/riscv/mapping-04b.d: Change to use RV64I. Check that .dword is actually used. * testsuite/gas/riscv/mapping-norelax-04b.d: Likewise. * testsuite/gas/riscv/mapping-04b-32.d: New test, the same as mapping-04b except it uses RV32I and .dword should not be used. opcodes/ChangeLog: * riscv-dis.c (riscv_data_length): Print using .dword on RV64.
- Loading branch information
Showing
4 changed files
with
38 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#as: -march=rv32i | ||
#source: mapping-04.s | ||
#objdump: -d | ||
|
||
.*:[ ]+file format .* | ||
|
||
|
||
Disassembly of section .text: | ||
|
||
0+000 <.text>: | ||
[ ]+0:[ ]+00001001[ ]+.word[ ]+0x00001001 | ||
[ ]+4:[ ]+00001001[ ]+.word[ ]+0x00001001 | ||
[ ]+8:[ ]+00000001[ ]+.word[ ]+0x00000001 | ||
[ ]+c:[ ]+00[ ]+.byte[ ]+0x00 | ||
[ ]+d:[ ]+00000013[ ]+nop | ||
[ ]+11:[ ]+00a50533[ ]+add[ ]+a0,a0,a0 | ||
[ ]+15:[ ]+20022002[ ]+.word[ ]+0x20022002 | ||
[ ]+19:[ ]+20022002[ ]+.word[ ]+0x20022002 | ||
[ ]+1d:[ ]+2002[ ]+.short[ ]+0x2002 | ||
[ ]+1f:[ ]+00b585b3[ ]+add[ ]+a1,a1,a1 | ||
[ ]+23:[ ]+0000[ ]+.2byte[ ]+0x0 | ||
[ ]+25:[ ]+0000[ ]+.2byte[ ]+0x0 | ||
#... |
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