xscvsdqp
VSX Scalar Convert Signed Doubleword to Quad-Precision
Converts a signed doubleword integer from VSR[VRB+32] to quad-precision floating-point in VSR[VRT+32].
Details
The instruction converts the signed integer value in doubleword element 0 of VSR[VRB+32] to quad-precision floating-point format and stores it in VSR[VRT+32]. The FPSCR.FPRF, FPSCR.FR, and FPSCR.FI fields are updated accordingly.
Pseudocode Operation
Programming Note
This instruction is commonly used for converting signed integers to quad-precision floating-point numbers in VSX registers. Ensure that the VSX facility is enabled (MSR.VSX=1) to avoid exceptions. The conversion respects standard rounding rules, and the FPSCR flags are updated accordingly. Be cautious of potential overflow or underflow conditions when dealing with very large or small integers.
Example
Encoding
Operands
-
vD
Target -
vB
Source -
VRT
Target Vector-Scalar Register -
VRB
Source Vector-Scalar Register