_mm_mask_blend_ph
Classification
AVX-512, Miscellaneous, CPUID Test: AVX512_FP16
Header File
Instruction
VPBLENDMW xmm {k}, xmm, xmm
Synopsis
_mm_mask_blend_ph(__mmask8 k, __m128h a, __m128h 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 7
IF k[j]
dst.fp16[j] := b.fp16[j]
ELSE
dst.fp16[j] := a.fp16[j]
FI
ENDFOR
dst[MAX:128] := 0