This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, microblaze, gas, opcodes] Add support for swapb and swaph insns


On 11/08/2012 04:50 AM, David Holsgrove wrote:
Add swap byte (swapb) and swap halfword (swaph) opcodes.

swapb: swaps the contents of rA treated as 4 bytes, and place in rD,
effectively converting between endianness formats

swaph: swaps the contents of rA treated as 2 halfwords, and place in rD,
converting the 2 halfwords in the register between endianness formats.

Expand gas/testsuite/microblaze/gas/allinsn to include swapb and swaph



binutils/opcodes/Changelog

2012-11-08 David Holsgrove <david.holsgrove@xilinx.com>

           * microblaze-opc.h (op_code_struct): Add swapb, swaph
             Increase MAX_OPCODES.
           * microblaze-opcm.h (microblaze_instr): Likewise


binutils/gas/testsuite/Changelog


2012-11-08 David Holsgrove <david.holsgrove@xilinx.com>

           * gas/microblaze/allinsn.s: Add swapb, swaph
           * gas/microblaze/allinsn.d: Likewise


Committed.


--
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]