xscpsgnqp
VSX Scalar Copy Sign Quad-Precision
Copies sign from B to A (128-bit).
Details
The xscpsgnqp instruction copies the sign bit from a source quad-precision floating-point number to another quad-precision floating-point number while preserving its magnitude.
Pseudocode Operation
Programming Note
The xscpsgnqp instruction is used to copy the sign bit from one quad-precision floating-point number to another while keeping its magnitude unchanged. Ensure that the VSX (Vector Scalar Extensions) are enabled by checking and setting the appropriate bit in the MSR register. This instruction operates on 128-bit values, so both source operands must be properly aligned. Be cautious of potential exceptions if the VSX is not available or if there are alignment issues.
Example
Encoding
Operands
-
vD
Target -
vA
Src A -
vB
Src B