xsabsqp
VSX Scalar Absolute Quad-Precision
xsabsqp vD, vB
Computes the absolute value of a quad-precision floating-point number.
Details
Computes the absolute value of a 128-bit quad-precision floating-point number in VSR vB by clearing the sign bit and stores the result in VSR vD. This VSX instruction does not modify FPSCR exception flags or condition registers.
Pseudocode Operation
vD ← vB with sign bit cleared
Programming Note
When Rc=1, CR1 is set from the FPSCR[FX, FEX, VX, OX] bits immediately after the operation completes.
Example
xsabsqp vd, vb
Encoding
Binary Layout
111111
0
vD
6
00000
30
vB
31
11001
00100
Rc
Operands
-
vD
Target -
vB
Source -
RT
Target Vector Register -
RA
Source Vector Register