xvabssp

VSX Vector Absolute Value Single-Precision

xvabssp XT, XB

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

xvabssp vs1, vs3

Encoding

Binary Layout
60
0
XT
6
0
11
XB
16
409
21
 
Format XX2-form
Opcode 0xF0000664
Extension VSX
Registers Altered MSR

Operands

  • XT
    Target
  • XB
    Source