xvabssp
VSX Vector Absolute Value Single-Precision
xvabssp XT, XB
Computes absolute value for four single-precision floats.
Encoding
Binary Layout
60
0:5
XT
6:10
0
11:15
XB
16:20
409
21:31
Operands
-
XT
Target -
XB
Source
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
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.
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.