Check vl first
The current vl determines the number of body elements. Typical code executes vsetvli, vsetivli, or vsetvl before this instruction.
Vector widening logical left shift: zero-extend vs2 elements to 2*SEW, then shift left by a vector register amount.
VWSLL.VV is a Zvbb vector widening logical-left-shift instruction. Each active SEW element from vs2 is zero-extended to 2*SEW and shifted left by the vector register amount; only the low log2(2*SEW) bits are used.
VWSLL.VV is not ordinary VSLL; it zero-extends each SEW source element to 2*SEW and writes a widened destination group.
When reading VWSLL.VV, do not stop at the mnemonic. Official V-extension semantics also depend on the current vl, vtype, and mask state. .vv: two vector sources participate element by element.
The current vl determines the number of body elements. Typical code executes vsetvli, vsetivli, or vsetvl before this instruction.
The current vtype supplies SEW, LMUL, tail policy, and mask policy; these affect element width, register-group size, and inactive/tail destination elements.
For ordinary vector instructions with vm, vm=0 uses v0 as the execution mask and vm=1 is unmasked. A few forms such as VMERGE use v0 as data-selection input.
Understand this scenario with real code like «vwsll.vv vd, vs2, vs1».
Understand this scenario with real code like «vwsll.vv vd, vs2, vs1».
No. The destination element width is 2*SEW.
The official description zero-extends before shifting, so do not treat it as signed widening.