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
zimm5
19:15
011
14:12
vd
11:7
1010111
6:0
 
Format OPIVI
Opcode 0xB8003057
Extension V

Operands

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