Browse Source
Fix a commit b015e599c7 ("[MIPS] Add new virtualization instructions"),
<https://sourceware.org/ml/binutils/2013-05/msg00118.html>, regression
and bring the disassembly of the RFE instruction back for the relevant
ISA levels.
It is because the "rfe" opcode table entry was incorrectly moved behind
the catch-all generic "c0" entry for CP0 instructions, causing output
like:
00: 42000010 c0 0x10
to be produced rather than:
00: 42000010 rfe
even for ISA levels that do include the RFE instruction.
Move the "rfe" entry ahead of "c0" then, correcting the problem. Add a
suitable test case.
opcodes/
* mips-opc.c (mips_builtin_opcodes): Move the "rfe" entry ahead
of "c0".
gas/
* testsuite/gas/mips/rfe.d: New test.
* testsuite/gas/mips/rfe.s: New test source.
* testsuite/gas/mips/mips.exp: Run the new test.
binutils-2_37-branch
6 changed files with 34 additions and 2 deletions
@ -0,0 +1,9 @@ |
|||
#objdump: -d --prefix-addresses --show-raw-insn |
|||
#name: MIPS RFE instruction |
|||
#as: -32 |
|||
|
|||
.*: +file format .*mips.* |
|||
|
|||
Disassembly of section \.text: |
|||
[0-9a-f]+ <[^>]*> 42000010 rfe |
|||
\.\.\. |
|||
@ -0,0 +1,8 @@ |
|||
.text |
|||
.set noreorder |
|||
foo: |
|||
rfe |
|||
|
|||
# Force some (non-delay-slot) zero bytes, to make 'objdump' print ... |
|||
.align 4, 0 |
|||
.space 16 |
|||
Loading…
Reference in new issue