_mm512_maskz_compress_epi16
Classification
AVX-512, Swizzle, CPUID Test: AVX512_VBMI2
Header File
Instruction
VPCOMPRESSW zmm {z}, zmm
Synopsis
_mm512_maskz_compress_epi16(__mmask32 k, __m512i a);
Description
Contiguously store the active 16-bit integers in "a" (those with their respective bit set in zeromask "k") to "dst", and set the remaining elements to zero.
Operation
size := 16
m := 0
FOR j := 0 to 31
i := j*16
IF k[j]
dst[m+size-1:m] := a[i+15:i]
m := m + size
FI
ENDFOR
dst[511:m] := 0
dst[MAX:512] := 0