vsubfp
Vector Subtract Floating-Point
Subtracts four single-precision floats (Classic VMX).
Details
The vsubfp instruction performs a vectorized subtraction of single-precision floating-point numbers. It subtracts the elements of VRB from the corresponding elements of VRA and stores the results in VRT.
Pseudocode Operation
Programming Note
The vsubfp instruction is used for vectorized subtraction of single-precision floating-point numbers. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, a Vector_Unavailable exception will be raised. The operation processes four elements at a time, so ensure that the input vectors are properly aligned and contain valid floating-point data to avoid unexpected results.
Example
Encoding
Operands
-
vD
Target -
vA
Src A -
vB
Src B