Does VMSBC.VX 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 subtract borrow-out and write the Boolean result to mask destination vd.
VMSBC.VX is a RISC-V V vector subtract borrow-out instruction. It does not write the integer sum or difference; it writes each element's borrow-out as a destination mask bit. The form without the m suffix has no borrow input and no ordinary execution-mask operand. The destination is a mask register, not an ordinary SEW-width integer result.
VMSBC.VX generates a borrow mask; in m forms, v0 is the carry/borrow input, not an ordinary execution mask.
Understand this scenario with real code like «vmsbc.vx v1, v2, a1».
Understand this scenario with real code like «vmsbc.vx v1, v2, a1».
No. It writes only carry or borrow mask bits; data results come from instructions such as VADC/VSBC.