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

Michael Eager eager@eagerm.com
Wed Nov 21 17:54:00 GMT 2012


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




More information about the Binutils mailing list