OSDN Git Service

* config/tc-mips.c (append_insn): Convert MIPS16 jr/jalr jumps
authorDavid Ung <davidu@mips.com>
Wed, 19 Oct 2005 18:47:09 +0000 (18:47 +0000)
committerDavid Ung <davidu@mips.com>
Wed, 19 Oct 2005 18:47:09 +0000 (18:47 +0000)
commit7de5ad1639e7df5889d667def9d97d3b9eed437c
tree4e96bf1ea3028909f9b909370abcc0796783e464
parent64eebbf244b26768a51400cc9d9a5fe3bdaf0354
* config/tc-mips.c (append_insn): Convert MIPS16 jr/jalr jumps
into jrc/jalrc versions if ISA_MIPS32+ and not doing the swap,
hence avoiding to emit a nop.

* gas/mips/mips.exp: Run new test.
* gas/testsuite/gas/mips/mips16e-jrc.s: New test for converting
jalr/jr to the compact jalrc/jrc instructions.
* gas/testsuite/gas/mips/mips16e-jrc.d: New.
gas/ChangeLog
gas/config/tc-mips.c
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/mips16e-jrc.d [new file with mode: 0644]
gas/testsuite/gas/mips/mips16e-jrc.s [new file with mode: 0644]