Does VMSLEU.VI write ordinary vector elements?
No. Compare instructions write a mask destination vd, with one Boolean bit per element.
Perform element-wise <= comparison and write the Boolean result to mask destination vd.
VMSLEU.VI is a RISC-V V vector integer unsigned less-or-equal compare instruction. For active elements within vl, it compares vs2 with a sign-extended 5-bit immediate and writes the comparison result to mask destination vd. The immediate is sign-extended to SEW before applying this instruction's comparison relation. Integer comparisons do not raise floating-point exceptions.
VMSLEU.VI produces mask bits, not a 0/-1 integer vector.
Understand this scenario with real code like «vmsleu.vi v1, v2, 0».
Understand this scenario with real code like «vmsleu.vi v1, v2, 0».
No. Compare instructions write a mask destination vd, with one Boolean bit per element.
With vm=0, v0 selects active elements; with vm=1, all body elements participate. Inactive and tail elements follow the current policies.