_mm512_permutex2var_ph
Classification
AVX-512, Miscellaneous, CPUID Test: AVX512_FP16
Header File
immintrin.h
Instruction
VPERMI2W zmm, zmm, zmm
Synopsis
 _mm512_permutex2var_ph(__m512h a, __m512i idx, __m512h b);
Description
Shuffle half-precision (16-bit) floating-point elements in "a" and "b" across lanes using the corresponding selector and index in "idx", and store the results in "dst".
Operation
FOR j := 0 to 31
	i := j*16
	off := idx[i+4:i]
	dst.fp16[j] := idx[i+5] ? b.fp16[off] : a.fp16[off]
ENDFOR
dst[MAX:512] := 0