vbrh

Vector Byte-Reverse Halfword

vbrh vD, vB

Reverses bytes within each halfword (Endian Swap).

Details

The Vector Byte-Reverse Halfword instruction reverses bytes within each halfword (Endian Swap).

Pseudocode Operation

// VMX vector operation -> v1

Example

vbrh vd, vb

Encoding

Binary Layout
4
0
vD
6
0
11
vB
16
1606
21
 
Format VX-form
Opcode 0x10000646
Extension VMX (AltiVec)

Operands

  • vD
    Target
  • vB
    Source