Reverse bytes or bits within words or halfwords.
is any one of the following:
Reverse byte order in a word.
Reverse byte order in each halfword independently.
Reverse byte order in the bottom halfword, and sign extend to 32 bits.
Reverse the bit order in a 32-bit word.
is an optional condition code.
is the destination register.
is the register holding the operand.
You can use these instructions to change endianness:
converts 32-bit big-endian data into little-endian data or 32-bit little-endian data into big-endian data.
converts 16-bit big-endian data into little-endian data or 16-bit little-endian data into big-endian data.
16-bit signed big-endian data into 32-bit signed little-endian data
16-bit signed little-endian data into 32-bit signed big-endian data.