_mm512_mask_addsetc_epi32
Classification
KNC, Arithmetic, CPUID Test: KNCNI
Header File
Instruction
VPADDSETCD zmm {k}, k, zmm
Synopsis
_mm512_mask_addsetc_epi32(__m512i v2, __mmask16 k, __mmask16 k_old, __m512i v3, __mmask16 * k2_res);
Description
Performs element-by-element addition of packed 32-bit integer elements in "v2" and "v3", storing the resultant carry in "k2_res" (carry flag) and the addition results in "dst" using writemask "k" (elements are copied from "v2" and "k_old" when the corresponding mask bit is not set).
Operation
FOR j := 0 to 15
i := j*32
IF k[j]
dst[i+31:i] := v2[i+31:i] + v3[i+31:i]
ELSE
dst[i+31:i] := v2[i+31:i]
k2_res[j] := k_old[j]
FI
ENDFOR
dst[MAX:512] := 0