_mm256_mask_cvtsepi16_storeu_epi8
Classification
AVX-512, Store, CPUID Test: AVX512BW
Header File
Instruction
VPMOVSWB m128 {k}, ymm
Synopsis
_mm256_mask_cvtsepi16_storeu_epi8(void* base_addr, __mmask16 k, __m256i a);
Description
Convert packed signed 16-bit integers in "a" to packed 8-bit integers with signed saturation, and store the active results (those with their respective bit set in writemask "k") to unaligned memory at "base_addr".
Operation
FOR j := 0 to 15
i := 16*j
l := 8*j
IF k[j]
MEM[base_addr+l+7:base_addr+l] := Saturate8(a[i+15:i])
FI
ENDFOR