Does VMADC.VIM write the add/subtract result?
No. It writes only carry or borrow mask bits; data results come from instructions such as VADC/VSBC.
Compute element-wise add carry-out and write the Boolean result to mask destination vd.
VMADC.VIM is a RISC-V V vector add carry-out instruction. It does not write the integer sum or difference; it writes each element's carry-out as a destination mask bit. The m-suffixed form uses v0.mask[i] as carry/borrow input. The destination is a mask register, not an ordinary SEW-width integer result.
VMADC.VIM generates a carry mask; in m forms, v0 is the carry/borrow input, not an ordinary execution mask.
Understand this scenario with real code like «vmadc.vim v1, v2, 1, v0.t».
Understand this scenario with real code like «vmadc.vim v1, v2, 1, v0.t».
Understand this scenario with real code like «vmadc.vim v1, v2, 1, v0.t».
No. It writes only carry or borrow mask bits; data results come from instructions such as VADC/VSBC.