_mm256_mask_set1_epi8
Classification
AVX-512, Set, CPUID Test: AVX512BW
Header File
immintrin.h
Instruction
VPBROADCASTB ymm {k}, r8
Synopsis
 _mm256_mask_set1_epi8(__m256i src, __mmask32 k, char a);
Description
Broadcast 8-bit integer "a" to all elements of "dst" using writemask "k" (elements are copied from "src" when the corresponding mask bit is not set).
Operation
FOR j := 0 to 31
	i := j*8
	IF k[j]
		dst[i+7:i] := a[7:0]
	ELSE
		dst[i+7:i] := src[i+7:i]
	FI
ENDFOR
dst[MAX:256] := 0