_mm256_permutex2var_ph
Classification
AVX-512, Miscellaneous, CPUID Test: AVX512_FP16
Header File
Instruction
VPERMI2W ymm, ymm, ymm
Synopsis
_mm256_permutex2var_ph(__m256h a, __m256i idx, __m256h 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 15
i := j*16
off := idx[i+3:i]
dst.fp16[j] := idx[i+4] ? b.fp16[off] : a.fp16[off]
ENDFOR
dst[MAX:256] := 0