xssubqpo
VSX Scalar Subtract Quad-Precision Odd
Used for Quad-Precision arithmetic on hardware that splits quads.
Details
The VSX Scalar Subtract Quad-Precision Odd instruction subtracts two double-precision floating-point values, src1 and src2. If src2 is a Quiet NaN, the result is src2. If both src1 and src2 are Infinity with the same sign, the result is the default Quiet NaN. Otherwise, it performs the subtraction and handles various special cases like exact-zero-difference results and overflow.
Pseudocode Operation
Programming Note
This instruction is commonly used for precise floating-point arithmetic operations in scientific computing. Be cautious of NaN handling; if src2 is a Quiet NaN, it will propagate as the result without performing any subtraction. Ensure that inputs are properly aligned to avoid alignment faults. This operation requires FPSCR for exception flags and rounding modes.
Example
Encoding
Operands
-
vD
Target -
vA
Src A -
vB
Src B