Does VMADC.VI 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.VI 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 form without the m suffix has no carry input and no ordinary execution-mask operand. The destination is a mask register, not an ordinary SEW-width integer result.
VMADC.VI 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.vi v1, v2, 1».
Understand this scenario with real code like «vmadc.vi v1, v2, 1».
Understand this scenario with real code like «vmadc.vi v1, v2, 1».
No. It writes only carry or borrow mask bits; data results come from instructions such as VADC/VSBC.