diexq
Decimal Insert Exponent Quad-Precision
Inserts exponent into 128-bit DFP.
Details
The Decimal Insert Exponent Quad-Precision instruction inserts the biased exponent from one DFP operand into another DFP operand.
Pseudocode Operation
f1 <- DFP_operation(f2, f3)
Programming Note
The `diexq` instruction is used to insert the biased exponent from one decimal floating-point (DFP) operand into another. Ensure both operands are properly aligned and that the FPSCR register is correctly configured for desired rounding modes and exception handling. This instruction operates at the problem state privilege level, so ensure your program has the appropriate privileges. Be cautious of potential exceptions such as invalid operations or overflow, which may require additional error handling code.
Example
Encoding
Operands
-
vD
Target -
vA
Coeff -
vB
Exp