_mm256_mask_blend_ph
Classification
AVX-512, Miscellaneous, CPUID Test: AVX512_FP16
Header File
Instruction
VPBLENDMW ymm {k}, ymm, ymm
Synopsis
_mm256_mask_blend_ph(__mmask16 k, __m256h a, __m256h b);
Description
Blend packed half-precision (16-bit) floating-point elements from "a" and "b" using control mask "k", and store the results in "dst".
Operation
FOR j := 0 to 15
IF k[j]
dst.fp16[j] := b.fp16[j]
ELSE
dst.fp16[j] := a.fp16[j]
FI
ENDFOR
dst[MAX:256] := 0