rev8
Byte-reverse register (RV64 encoding)
This instruction is defined by:
Synopsis
This instruction reverses the order of the bytes in rs1.
The rev8 mnemonic corresponds to different instruction encodings in RV32 and RV64. |
The byte-reverse operation is only available for the full register width. To emulate word-sized
and halfword-sized byte-reversal, perform a rev8 rd,rs followed by a srai rd,rd,K , where K
is XLEN-32 and XLEN-16, respectively.
|