_mm256_mask_compressstoreu_epi8
Classification
AVX-512, Swizzle, CPUID Test: AVX512_VBMI2
Header File
Instruction
VPCOMPRESSB m256 {k}, ymm
Synopsis
_mm256_mask_compressstoreu_epi8(void* base_addr, __mmask32 k, __m256i a);
Description
Contiguously store the active 8-bit integers in "a" (those with their respective bit set in writemask "k") to unaligned memory at "base_addr".
Operation
size := 8
m := base_addr
FOR j := 0 to 31
i := j*8
IF k[j]
MEM[m+size-1:m] := a[i+7:i]
m := m + size
FI
ENDFOR