VREV8.V

Vector Reverse 8

VREV8.V vd, vs2, vm

Reverses the order of bytes within each element (endian swap).

Encoding

Binary Layout
010010
31:26
vm
25
vs2
24:20
01001010
19:12
vd
11:7
1010111
6:0
 
Format OPIVV
Opcode 0x4804A057
Extension Zvbb

Operands

  • vd
    Destination vector register
  • vs2
    Source vector register 2

Example

VREV8.V v1, v4, v0.t

Related

More in Zvbb

Description

Reverses the order of the bytes within every element of vs2, effectively an endian swap, and writes the result to vd.

Operation

foreach(i < vl): vd[i] = bswap(vs2[i]);