_mm512_mask_cmpeq_ps_mask
Classification
KNC, Compare, CPUID Test: KNCNI
Header File
Instruction
VCMPPS k {k}, zmm, zmm, imm8
Synopsis
_mm512_mask_cmpeq_ps_mask(__mmask16 k1, __m512 a, __m512 b);
Description
Compare packed single-precision (32-bit) floating-point elements in "a" and "b" for equality, and store the results in mask vector "k" using zeromask "k1" (elements are zeroed out when the corresponding mask bit is not set).
Operation
FOR j := 0 to 15
i := j*32
IF k1[j]
k[j] := (a[i+31:i] == b[i+31:i]) ? 1 : 0
ELSE
k[j] := 0
FI
ENDFOR
k[MAX:16] := 0