_mm256_mask_fpclass_ph_mask
Classification
AVX-512, Miscellaneous, CPUID Test: AVX512_FP16
Header File
Instruction
VFPCLASSPH k {k}, ymm, imm8
Synopsis
_mm256_mask_fpclass_ph_mask(__mmask16 k1, __m256h a, int imm8);
Description
Test packed half-precision (16-bit) floating-point elements in "a" for special categories specified by "imm8", and store the results in mask vector "k" using zeromask "k1" (elements are zeroed out when the corresponding mask bit is not set).
[fpclass_note]
Operation
FOR i := 0 to 15
IF k1[i]
k[i] := CheckFPClass_FP16(a.fp16[i], imm8[7:0])
ELSE
k[i] := 0
FI
ENDFOR
k[MAX:16] := 0