_mm_mask_compressstoreu_epi16
Classification
AVX-512, Swizzle, CPUID Test: AVX512_VBMI2
Header File
immintrin.h
Instruction
VPCOMPRESSW m128 {k}, xmm
Synopsis
 _mm_mask_compressstoreu_epi16(void* base_addr, __mmask8 k, __m128i a);
Description
Contiguously store the active 16-bit integers in "a" (those with their respective bit set in writemask "k") to unaligned memory at "base_addr".
Operation
size := 16
m := base_addr
FOR j := 0 to 7
	i := j*16
	IF k[j]
		MEM[m+size-1:m] := a[i+15:i]
		m := m + size
	FI
ENDFOR