xvabsdp
VSX Vector Absolute Value Double-Precision
xvabsdp XT, XB
Computes the absolute value of each double-precision floating-point element in a vector.
Details
The instruction computes the absolute value of each double-precision floating-point element in the source vector VSR[XB] and stores the result in the target vector VSR[XT].
Pseudocode Operation
Programming Note
This instruction is used to compute the absolute value of each double-precision floating-point element in a vector. Ensure that VSX (Vector Scalar Extensions) is enabled by checking and setting the appropriate bit in the MSR register. The operation processes two elements per vector register, so ensure proper alignment if manipulating individual elements directly.
Example
xvabsdp vs1, vs3
Encoding
Binary Layout
60
0
XT
11
0
16
XB
21
473
Operands
-
XT
Target -
XB
Source