diexq

Decimal Insert Exponent Quad-Precision

diexq vD, vA, vB

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

diexq vd, va, vb

Encoding

Binary Layout
63
0
vD
6
vA
11
vB
16
866
21
/
31
 
Format X-form
Opcode 0xFC0006C2
Extension Decimal Floating-Point
Registers Altered FPSCR

Operands

  • vD
    Target
  • vA
    Coeff
  • vB
    Exp