_mm512_mask_madd52lo_epu64
Classification
AVX-512, Arithmetic, CPUID Test: AVX512IFMA52
Header File
Instruction
VPMADD52LUQ zmm {k}, zmm, zmm
Synopsis
_mm512_mask_madd52lo_epu64(__m512i a, __mmask8 k, __m512i b, __m512i c);
Description
Multiply packed unsigned 52-bit integers in each 64-bit element of "b" and "c" to form a 104-bit intermediate result. Add the low 52-bit unsigned integer from the intermediate result with the corresponding unsigned 64-bit integer in "a", and store the results in "dst" using writemask "k" (elements are copied from "a" when the corresponding mask bit is not set).
Operation
FOR j := 0 to 7
i := j*64
IF k[j]
tmp[127:0] := ZeroExtend64(b[i+51:i]) * ZeroExtend64(c[i+51:i])
dst[i+63:i] := a[i+63:i] + ZeroExtend64(tmp[51:0])
ELSE
dst[i+63:i] := a[i+63:i]
FI
ENDFOR
dst[MAX:512] := 0