_mm_multishift_epi64_epi8
Classification
AVX-512, Bit Manipulation, CPUID Test: AVX512_VBMI
Header File
immintrin.h
Instruction
VPMULTISHIFTQB xmm, xmm, xmm
Synopsis
 _mm_multishift_epi64_epi8(__m128i a, __m128i 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".
Operation
FOR i := 0 to 1
	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
		dst[q+j*8+7:q+j*8] := tmp8[7:0]
	ENDFOR
ENDFOR
dst[MAX:128] := 0