_mm512_mask_subsetb_epi32
Classification
KNC, Arithmetic, CPUID Test: KNCNI
Header File
Instruction
VPSUBSETBD zmm {k}, k, zmm
Synopsis
_mm512_mask_subsetb_epi32(__m512i v2, __mmask16 k, __mmask16 k_old, __m512i v3, __mmask16 * borrow);
Description
Performs element-by-element subtraction of packed 32-bit integer elements in "v3" from "v2", storing the results in "dst" and the nth borrow bit in the nth position of "borrow" (borrow flag). Results are stored 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]
borrow[j] := Borrow(v2[i+31:i] - v3[i+31:i])
ELSE
dst[i+31:i] := v3[i+31:i]
borrow[j] := k_old[j]
FI
ENDFOR
dst[MAX:512] := 0