xvabssp
VSX Vector Absolute Value Single-Precision
Computes absolute value for four single-precision floats.
Details
The xvabssp instruction computes the absolute value of each single-precision floating-point element in a vector register and stores the result in another vector register. It processes four elements per operation.
Pseudocode Operation
Programming Note
The xvabssp instruction is used to compute the absolute value of each single-precision floating-point element in a vector register. Ensure that the VSX (Vector Scalar Extensions) are enabled by checking and setting the appropriate bit in the MSR register. This instruction processes four elements per operation, so ensure your data is appropriately aligned for optimal performance.
Example
Encoding
Operands
-
XT
Target -
XB
Source