_mm512_mask_cvt_roundepi16_ph
Classification
AVX-512, Convert, CPUID Test: AVX512_FP16
Header File
Instruction
VCVTW2PH zmm {k}, zmm {er}
Synopsis
_mm512_mask_cvt_roundepi16_ph(__m512h src, __mmask32 k, __m512i a, int rounding);
Description
Convert packed signed 16-bit integers in "a" to packed half-precision (16-bit) floating-point elements, and store the results in "dst" using writemask "k" (elements are copied from "src" when the corresponding mask bit is not set).
[round_note]
Operation
FOR j := 0 TO 31
IF k[j]
dst.fp16[j] := Convert_Int16_To_FP16(a.word[j])
ELSE
dst.fp16[j] := src.fp16[j]
FI
ENDFOR
dst[MAX:512] := 0