Does VREMU.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 unsigned integer remainder.
VREMU.VV computes unsigned remainders element-wise. A zero divisor does not trap; the remainder result is the dividend.
VREMU.VV is an RVV integer remainder instruction paired with the VDIV/VDIVU divide rules.
Understand this scenario with real code like «vremu.vv v8, v12, v4, v0.t».
Understand this scenario with real code like «vremu.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.