xvnabsdp

Vector Negative Absolute Double-Precision

xvnabsdp XT,XB

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

Details

For xvnabsdp, the negative absolute value of each double-precision floating-point element in VSR[XB] is computed and stored in 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_NEGATIVE_ABSOLUTE(src)
end

Programming Note

This instruction computes the negative 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 Machine State Register (MSR). The operation processes two elements per vector register, so ensure proper alignment if manipulating individual elements.

Example

xvnabsdp vs1, vs3

Encoding

Binary Layout
T
0
B
11
BX
16
TX
21
 
Format XX2-form
Opcode 0xF00007A4
Extension VSX
Registers Altered None

Operands

  • XT
    Target Vector Register
  • XB
    Source Vector Register