VNCLIPU.WI

Vector Narrowing Clip Unsigned (Immediate)

VNCLIPU.WI vd, vs2, imm, vm

Shifts right (logical), rounds, and clips to unsigned destination. Used for pixel packing.

Details

Performs a narrowing operation, halving the result element width relative to the source. Optionally saturates the result. Active elements are determined by vl; masking by vm.

Pseudocode Operation

foreach(i < vl): vd[i] = clip_u(round(vs2[i] >>u imm));

Example

VNCLIPU.WI v1, v4, 16, v0.t

Encoding

Binary Layout
101110
31:26
vm
25
vs2
24:20
imm
011
19:17
vd
16:12
1010111
11:5
 
Format OPIVI
Opcode 0x57
Extension V

Operands

  • vd
    Dest (Narrow)
  • vs2
    Src Vector (Wide)
  • imm
    Shift Amount