_mm_mask_fpclass_sh_mask
Classification
AVX-512, Miscellaneous, CPUID Test: AVX512_FP16
Header File
Instruction
VFPCLASSSH k {k}, xmm, imm8
Synopsis
_mm_mask_fpclass_sh_mask(__mmask8 k1, __m128h a, int imm8);
Description
Test the lower half-precision (16-bit) floating-point element in "a" for special categories specified by "imm8", and store the result in mask vector "k" using zeromask "k1" (the element is zeroed out when mask bit 0 is not set).
[fpclass_note]
Operation
IF k1[0]
k[0] := CheckFPClass_FP16(a.fp16[0], imm8[7:0])
ELSE
k[0] := 0
FI
k[MAX:1] := 0