xssqrtqpo
VSX Scalar Square Root Quad-Precision Odd
Used for Quad-Precision arithmetic on hardware that splits quads.
Details
Computes the square root of the odd (high-order) portion of a 128-bit quad-precision floating-point value in VSR vB, placing the result in VSR vD. This instruction is used on systems that split quad-precision operands into even/odd register pairs. FPSCR exception flags are updated based on the operation result. Requires VSX support.
Pseudocode Operation
vD ← sqrt(vB) as quad-precision (odd portion operation)
FPSCR[XX,ZX,OX,UX,VXSQRT] ← updated based on operation result
Programming Note
The xssqrtqpo instruction is used to compute the square root of a quad-precision floating-point value using the Round to Odd rounding mode. It handles signaling NaNs by raising an Invalid Operation exception and setting VXSNAN in the FPSCR. Ensure that the input is properly aligned and check the FPSCR for exceptions after execution.
Example
Encoding
Operands
-
vD
Target -
vB
Source