mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-12 12:16:04 +08:00
6e3d1f0728
Complement commit 986e18a5a9
("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.
17 lines
461 B
Makefile
17 lines
461 B
Makefile
#PROG: objcopy
|
|
#objdump: -M no-aliases -d --prefix-addresses --show-raw-insn
|
|
#name: MIPS16 canonical alias disassembly
|
|
#as: -32 -mips3
|
|
#source: mips16-alias.s
|
|
|
|
.*: +file format .*mips.*
|
|
|
|
Disassembly of section \.text:
|
|
[0-9a-f]+ <[^>]*> 6500 move zero,s0
|
|
[0-9a-f]+ <[^>]*> 0a08 addiu v0,\$pc,32
|
|
[0-9a-f]+ <[^>]*> b207 lw v0,28\(\$pc\)
|
|
[0-9a-f]+ <[^>]*> fe47 daddiu v0,\$pc,28
|
|
[0-9a-f]+ <[^>]*> fc43 ld v0,24\(\$pc\)
|
|
\.\.\.
|
|
\.\.\.
|