_mm_mask_cvtusepi32_storeu_epi8
Classification
AVX-512, Store, CPUID Test: AVX512F
Header File
Instruction
VPMOVUSDB m32 {k}, xmm
Synopsis
_mm_mask_cvtusepi32_storeu_epi8(void* base_addr, __mmask8 k, __m128i a);
Description
Convert packed unsigned 32-bit integers in "a" to packed unsigned 8-bit integers with unsigned 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 3
i := 32*j
l := 8*j
IF k[j]
MEM[base_addr+l+7:base_addr+l] := SaturateU8(a[i+31:i])
FI
ENDFOR