xvnabsdp
Vector Negative Absolute Double-Precision
xvnabsdp XT,XB
Computes the negative absolute value of each double-precision floating-point element in a vector.
Encoding
Binary Layout
T
0:10
B
11:15
BX
16:20
TX
21:31
Operands
-
XT
Target Vector Register -
XB
Source Vector Register
Example
xvnabsdp vs1, vs3
Related
More in VSX
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
For xvnabsdp, the negative absolute value of each double-precision floating-point element in VSR[XB] is computed and stored in 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_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.