Does VREM.VV trap on divide by zero?
No. RVV integer divide/remainder uses the scalar extreme-input results; remainder instructions return the dividend when the divisor is zero.
Element-wise signed integer remainder.
VREM.VV computes signed remainders element-wise. A zero divisor does not trap; the remainder result is the dividend, and signed overflow of the corresponding divide gives remainder zero.
VREM.VV is an RVV integer remainder instruction paired with the VDIV/VDIVU divide rules.
Understand this scenario with real code like «vrem.vv v8, v12, v4, v0.t».
Understand this scenario with real code like «vrem.vv v8, v12, v4, v0.t».
No. RVV integer divide/remainder uses the scalar extreme-input results; remainder instructions return the dividend when the divisor is zero.