_mm256_mask_compress_pd
Classification
AVX-512, Miscellaneous, CPUID Test: AVX512F
Header File
Instruction
VCOMPRESSPD ymm {k}, ymm
Synopsis
_mm256_mask_compress_pd(__m256d src, __mmask8 k, __m256d a);
Description
Contiguously store the active double-precision (64-bit) floating-point elements in "a" (those with their respective bit set in writemask "k") to "dst", and pass through the remaining elements from "src".
Operation
size := 64
m := 0
FOR j := 0 to 3
i := j*64
IF k[j]
dst[m+size-1:m] := a[i+63:i]
m := m + size
FI
ENDFOR
dst[255:m] := src[255:m]
dst[MAX:256] := 0