Check vl first
The current vl determines the number of body elements. Typical code executes vsetvli, vsetivli, or vsetvl before this instruction.
Widen active vs2 floating-point elements for an unordered reduction sum, using wide vs1[0] as the initial value and writing vd[0].
VFWREDUSUM.VS is the RISC-V V widening floating-point unordered reduction-sum instruction. It widens active narrow vs2 elements to 2*SEW precision and reduces them with the wide initial value vs1[0]; only vd[0] receives the result. Because the reduction is unordered, implementations may choose the reduction tree, so the rounded floating-point result need not match ordered element-by-element reduction.
VFWREDUSUM.VS performs a widening floating-point unordered sum; use VFWREDOSUM.VS when fixed element-order semantics are required.
When reading VFWREDUSUM.VS, do not stop at the mnemonic. Official V-extension semantics also depend on the current vl, vtype, and mask state. The suffix and operand form determine whether sources are vector, scalar, or immediate values.
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 «vsetvli t0, a0, e16, m1, ta, ma vfwredusum.vs v2, v4, v3».
The ISA permits unordered reduction trees; floating-point rounding can vary with implementation or configuration. Use VFWREDOSUM.VS for ordered semantics.
With vm=0, v0 selects active elements; with vm=1, all body elements participate. Inactive and tail elements follow the current policies.