xssqrtqpo

VSX Scalar Square Root Quad-Precision Odd

xssqrtqpo vD, vB

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

xssqrtqpo vd, vb

Encoding

Binary Layout
63
0
vD
6
0
11
vB
16
676
21
/
31
 
Format X-form
Opcode 0xFC1B0648
Extension VSX
Registers Altered FPSCR

Operands

  • vD
    Target
  • vB
    Source