xvabssp
VSX Vector Absolute Value Single-Precision
Computes absolute value for four single-precision floats.
Details
VSX Vector Absolute Value Single-Precision computes the absolute value of four single-precision floating-point elements from VSX register XB, storing the results in VSX register XT. This VSX category instruction clears the sign bit of each 32-bit element and does not affect floating-point status flags.
Pseudocode Operation
XT[0:31] ← |XB[0:31]|
XT[32:63] ← |XB[32:63]|
XT[64:95] ← |XB[64:95]|
XT[96:127] ← |XB[96:127]|
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