rev16

Reverse Bytes in Halfwords

REV16 <Wd>, <Wn>

Reverses bytes in each 16-bit halfword.

Details

The Reverse Bytes in Halfwords instruction reverses bytes in each 16-bit halfword.

Pseudocode Operation

Wd ← byte-reverse of Wn

Example

REV16 w0, w1

Encoding

Binary Layout
01011010
110
00000
000001
Rn
Rd
 
Format Data Processing
Opcode 0x5AC00400
Extension Base

Operands

  • Wd
    Destination 32-bit integer register
  • Wn
    First source / base 32-bit integer register