VROL.VX

Vector Rotate Left Scalar

VROL.VX vd, vs2, rs1, vm

Rotates bits in elements of vs2 left by scalar rs1.

Encoding

Binary Layout
010101
31:26
vm
25
vs2
24:20
rs1
19:15
100
14:12
vd
11:7
1010111
6:0
 
Format OPIVX
Opcode 0x54004057
Extension Zvbb

Operands

  • vd
    Destination vector register
  • vs2
    Source vector register 2
  • rs1
    Source register 1 (integer)

Example

VROL.VX v1, v4, a0, v0.t

Related

More in Zvbb

Description

Rotates each element of vs2 left by the amount in scalar register rs1. Only the low log2(SEW) bits of the rotate amount are used.

Operation

foreach(i < vl): vd[i] = rotl(vs2[i], rs1 mod SEW);