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