_mm512_maskz_compress_pd
Classification
AVX-512, Swizzle, CPUID Test: AVX512F
Header File
Instruction
VCOMPRESSPD zmm {z}, zmm
Synopsis
_mm512_maskz_compress_pd(__mmask8 k, __m512d a);
Description
Contiguously store the active double-precision (64-bit) floating-point elements in "a" (those with their respective bit set in zeromask "k") to "dst", and set the remaining elements to zero.
Operation
size := 64
m := 0
FOR j := 0 to 7
i := j*64
IF k[j]
dst[m+size-1:m] := a[i+63:i]
m := m + size
FI
ENDFOR
dst[511:m] := 0
dst[MAX:512] := 0