_mm256_mask_loadu_epi8
Classification
AVX-512, Load, CPUID Test: AVX512BW
Header File
Instruction
VMOVDQU8 ymm {k}, m256
Synopsis
_mm256_mask_loadu_epi8(__m256i src, __mmask32 k, void const* mem_addr);
Description
Load packed 8-bit integers from memory into "dst" using writemask "k" (elements are copied from "src" when the corresponding mask bit is not set).
"mem_addr" does not need to be aligned on any particular boundary.
Operation
FOR j := 0 to 31
i := j*8
IF k[j]
dst[i+7:i] := MEM[mem_addr+i+7:mem_addr+i]
ELSE
dst[i+7:i] := src[i+7:i]
FI
ENDFOR
dst[MAX:256] := 0