How does VMUL.VV handle masking?
With vm=0, v0 selects active elements; with vm=1, all body elements participate. Inactive and tail elements follow the current policies.
Multiply elements and return the low SEW bits of each product.
VMUL.VV is a RISC-V V integer multiply instruction. It returns the low SEW bits of the 2*SEW product; the low half is the same for signed and unsigned multiplication. Results are written to active vd elements.
VMUL.VV writes only active elements; integer overflow keeps the low SEW bits and does not trap.
Understand this scenario with real code like «vmul.vv v8, v4, v6».
Understand this scenario with real code like «vmul.vv v8, v4, v6».
With vm=0, v0 selects active elements; with vm=1, all body elements participate. Inactive and tail elements follow the current policies.