Skip to content

VSLICE

Operation

Extract a lane window from the old destination followed by a source vector.

Assembler Syntax

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

Privilege

Unprivileged

Required CPUID flags

VECTOR

Number the lanes of the old destination followed by the lanes of Vn as one sequence. For each active destination lane, VSLICE selects the sequence lane whose index is the destination-lane index plus the unsigned count. A sequence index beyond both vectors produces zero. The governing predicate retains the corresponding old destination value in each inactive lane.

At W width and count 3, active result lanes select from old Vd followed by source Vn; inactive lanes preserve their old destination values.

VSLICE.W slice by three lanes

2.75in

Encodings

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

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

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