_mm_permutex2var_epi8
Classification
AVX-512, Swizzle, CPUID Test: AVX512_VBMI
Header File
immintrin.h
Instruction
VPERMI2B xmm, xmm, xmm
Synopsis
 _mm_permutex2var_epi8(__m128i a, __m128i idx, __m128i b);
Description
Shuffle 8-bit integers in "a" and "b" using the corresponding selector and index in "idx", and store the results in "dst".
Operation
FOR j := 0 to 15
	i := j*8
	off := 8*idx[i+3:i]
	dst[i+7:i] := idx[i+4] ? b[off+7:off] : a[off+7:off]
ENDFOR
dst[MAX:128] := 0