Skip to content

VPERM

Operation

Select source lanes with vector indices; out-of-range indices produce zero.

Assembler Syntax

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

Privilege

Unprivileged

Required CPUID flags

VECTOR

VPERM reads an element index from each active source lane. An index within the selected vector lane count copies the correspondingly numbered old destination lane to that destination lane; an out-of-range index writes zero. The governing predicate retains the old destination value in each inactive lane.

At W width, each active result lane selects the old Vd lane named by its index; inactive lanes preserve their old destination values.

VPERM.W indexed lane selection

2.75in

Encodings

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

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

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