mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-24 14:22:27 +08:00

Complement commit 986e18a5a9fd ("Add a second 'pinfo' member to mips_opcode to extend number of available bits"), <https://sourceware.org/ml/binutils/2005-01/msg00261.html>, and annotate MIPS16 NOP, LA, DLA and the synthetic forms of LD and LW instructions as aliases. These correspond to MOVE, and the PC-relative ADDIU, DADDIU, LD and LW hardware instructions respectively. binutils/ * testsuite/binutils-all/mips/mips16-alias.d: New test. * testsuite/binutils-all/mips/mips16-noalias.d: New test. * testsuite/binutils-all/mips/mips16-alias.s: New test source. * testsuite/binutils-all/mips/mips.exp: Run the new tests. opcodes/ * mips16-opc.c (AL): New macro. (mips16_opcodes): Mark "nop", "la", "dla", and synthetic forms of "ld" and "lw" as aliases.
16 lines
432 B
Makefile
16 lines
432 B
Makefile
#PROG: objcopy
|
|
#objdump: -d --prefix-addresses --show-raw-insn
|
|
#name: MIPS16 instruction alias disassembly
|
|
#as: -32 -mips3
|
|
|
|
.*: +file format .*mips.*
|
|
|
|
Disassembly of section \.text:
|
|
[0-9a-f]+ <[^>]*> 6500 nop
|
|
[0-9a-f]+ <[^>]*> 0a08 la v0,00000020 <bar>
|
|
[0-9a-f]+ <[^>]*> b207 lw v0,00000020 <bar>
|
|
[0-9a-f]+ <[^>]*> fe47 dla v0,00000020 <bar>
|
|
[0-9a-f]+ <[^>]*> fc43 ld v0,00000020 <bar>
|
|
\.\.\.
|
|
\.\.\.
|