VFREDOSUM.VS

Vector Ordered Float Reduction Sum

VFREDOSUM.VS vd, vs2, vs1, vm

Sums float vector elements in exact order (0 to vl-1).

Details

Performs a vector reduction: applies the operation across all active elements of vs2, using vs1[0] as the initial accumulator, and writes the scalar result to vd[0]. Active elements are determined by vl.

Pseudocode Operation

vd[0] = vs1[0]; for i in 0..vl-1: vd[0] += vs2[i];

Example

VFREDOSUM.VS v1, v4, v2, v0.t

Encoding

Binary Layout
000011
31:26
vm
25
vs2
24:20
vs1
19:15
001
14:12
vd
11:7
1010111
6:0
 
Format OPFVV
Opcode 0x57
Extension V

Operands

  • vd
    Scalar Dest
  • vs2
    Vector
  • vs1
    Start