Skip to content

PSLICE

Operation

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

Assembler Syntax

PSLICE.{B|W|L|Q}(z) Pn(p), imm6(i), Pn(q)

Privilege

Unprivileged

Required CPUID flags

VECTOR

PSLICE treats the significant predicate positions of the old destination followed by those of the source as one sequence of selected B, W, L, or Q typed lanes. It writes the destination from a window of the architectural typed-lane count beginning at the unsigned immediate count. Positions beyond that concatenated sequence become zero. The complete destination predicate image is written, and every bit outside its significant positions is cleared. The operation leaves FLAGS unchanged.

In this fixed 16-byte example, new Pd is the eight-lane window beginning three typed lanes into old Pd followed by source Ps. Larger VLEN uses its complete typed predicate lane count before crossing into Ps.

PSLICE.W slice by three predicate lanes

2.75in

Encodings

PSLICE.{B|W|L|Q}(z) Pn(p), imm6(i), Pn(q)

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

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