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

if MSR.VSX=0 then
    VSX_Unavailable()
do i = 0 to 1
    src ←VSR[32×BX+B].dword[i]
    VSR[32×TX+T].dword[i] ←bfp64_ABSOLUTE(src)
end

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
 
Format XX2-form
Opcode 0xF00001D9
Extension VSX
Registers Altered MSR

Operands

  • XT
    Target
  • XB
    Source