xvabsdp

VSX Vector Absolute Value Double-Precision

xvabsdp XT, XB

Computes the absolute value of each double-precision floating-point element in a vector.

Encoding

Binary Layout
60
0:5
XT
6:10
0
11:15
XB
16:20
473
21:31
 
Format XX2-form
Opcode 0xF0000764
Extension VSX

Operands

  • XT
    Target
  • XB
    Source

Example

xvabsdp vs1, vs3

Registers Altered

MSR

Related

More in VSX

Reference

Description

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].

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.