Skip to content

VROL

Operation

Rotates each active integer element left by its selected-width count.

Assembler Syntax

VROL.{B|W|L|Q}(z) Pn(p), Vn(v), Vn(w)

VROL.{B|W|L|Q}(z) Pn(p), imm6(i), Vn(v)

VROL.{B|W|L|Q}(z) Pn(p), <ea>(e), Vn(v)

VROL.{B|W|L|Q}(z) Pn(p), Vn(v), <ea>(e)

VROL.{B|W|L|Q}(z) Pn(p), imm6(i), <ea>(e)

Privilege

Unprivileged

Required CPUID flags

VECTOR

The governing predicate selects active destination elements. An immediate count applies to every active destination element. A vector or memory count source supplies the count from the lane corresponding to that element. VROL takes the low six bits of each supplied count and reduces the value modulo the selected B, W, L, or Q element width in bits. The resulting count rotates the old destination element to the left, wrapping bits shifted out of the high end into the low end of the same element. An effective count of zero writes the original selected-width value for that active element.

With a vector-register destination, active lanes are updated and inactive lanes retain their previous values. A memory destination is updated as an encoded lane-wise read-modify-write: each active element is read, rotated, and written back, while inactive elements retain their previous values.

2.75in

Encodings

VROL.{B|W|L|Q}(z) Pn(p), Vn(v), Vn(w)

Format: Instruction format for VROL.{B|W|L|Q}(z) Pn(p), Vn(v), Vn(w)

Format: Instruction format for VROL.{B|W|L|Q}(z) Pn(p), Vn(v), Vn(w)

2.75in VROL.{B|W|L|Q}(z) Pn(p), imm6(i), Vn(v)

Format: Instruction format for VROL.{B|W|L|Q}(z) Pn(p), imm6(i), Vn(v)

Format: Instruction format for VROL.{B|W|L|Q}(z) Pn(p), imm6(i), Vn(v)

2.75in VROL.{B|W|L|Q}(z) Pn(p), <ea>(e), Vn(v)

Format: Instruction format for VROL.{B|W|L|Q}(z) Pn(p), <ea>(e), Vn(v)

Format: Instruction format for VROL.{B|W|L|Q}(z) Pn(p), <ea>(e), Vn(v)

2.75in VROL.{B|W|L|Q}(z) Pn(p), Vn(v), <ea>(e)

Format: Instruction format for VROL.{B|W|L|Q}(z) Pn(p), Vn(v), <ea>(e)

Format: Instruction format for VROL.{B|W|L|Q}(z) Pn(p), Vn(v), <ea>(e)

dstexcluded: immediate [invalid_destination]

2.75in VROL.{B|W|L|Q}(z) Pn(p), imm6(i), <ea>(e)

Format: Instruction format for VROL.{B|W|L|Q}(z) Pn(p), imm6(i), <ea>(e)

Format: Instruction format for VROL.{B|W|L|Q}(z) Pn(p), imm6(i), <ea>(e)

dstexcluded: immediate [invalid_destination]