xssqrtqpo
VSX Scalar Square Root Quad-Precision Odd
xssqrtqpo vD, vB
Used for Quad-Precision arithmetic on hardware that splits quads.
Encoding
Binary Layout
63
0:5
vD
6:10
0
11:15
vB
16:20
676
21:30
/
31
Operands
-
vD
Target -
vB
Source
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
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.
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.