_mm256_maskz_multishift_epi64_epi8
Classification
AVX-512, Bit Manipulation, CPUID Test: AVX512_VBMI
Header File
immintrin.h
Instruction
VPMULTISHIFTQB ymm {z}, ymm, ymm
Synopsis
 _mm256_maskz_multishift_epi64_epi8(__mmask32 k, __m256i a, __m256i b);
Description
For each 64-bit element in "b", select 8 unaligned bytes using a byte-granular shift control within the corresponding 64-bit element of "a", and store the 8 assembled bytes to the corresponding 64-bit element of "dst" using zeromask "k" (elements are zeroed out when the corresponding mask bit is not set).
Operation
FOR i := 0 to 3
	q := i * 64
	FOR j := 0 to 7
		tmp8 := 0
		ctrl := a[q+j*8+7:q+j*8] & 63
		FOR l := 0 to 7
			tmp8[l] := b[q+((ctrl+l) & 63)]
		ENDFOR
		IF k[i*8+j]
			dst[q+j*8+7:q+j*8] := tmp8[7:0]
		ELSE
			dst[q+j*8+7:q+j*8] := 0
		FI
	ENDFOR
ENDFOR
dst[MAX:256] := 0