vaddfp
Vector Add Floating-Point
vaddfp vD, vA, vB
Adds the contents of two vector registers and places the result in another vector register.
Details
For vaddfp, each element of the source vectors VRA and VRB is added to produce corresponding elements in the destination vector VRT.
Pseudocode Operation
Programming Note
The vaddfp instruction adds corresponding elements of two source vectors and stores the results in a destination vector. Ensure that the Vector Facility is enabled by setting MSR.VEC to 1; otherwise, a Vector_Unavailable exception will be raised. This instruction operates on single-precision floating-point numbers and processes four elements per operation.
Example
vaddfp vd, va, vb
Encoding
Binary Layout
4
0
vD
6
vA
11
vB
16
10
Operands
-
vD
Target -
vA
Src A -
vB
Src B -
VRT
Target Vector Register -
VRA
Source Vector Register -
VRB
Source Vector Register