diexq.

DFP Insert Biased Exponent Quad X-form

diexq. RT,RA,RB

Inserts the biased exponent from a source register into a destination register in quad format.

Details

Inserts a biased exponent from a source general-purpose register into a quad-precision decimal floating-point number, replacing the exponent field of the destination. The instruction requires Decimal Floating-Point (DFP) support. The update form (indicated by the dot) sets condition register field CR0 based on the result classification (zero, normal, infinity, or NaN).

Pseudocode Operation

exponent ← RA[32:63]
RT ← insert_exponent_into_DFP_quad(RB, exponent)
if Rc = 1 then CR0 ← classify_DFP_result(RT)

Programming Note

When Rc=1, CR1 is set from the FPSCR[FX, FEX, VX, OX] bits immediately after the operation completes.

Example

diexq. r3, r4, r5

Encoding

Binary Layout
111111
0
RT
6
RA
11
RB
16
11011
21
00010
26
Rc
31
 
Format X-form
Opcode 0xFC0006C4
Extension Decimal Floating-Point

Operands

  • RT
    Target General Purpose Register
  • RA
    Source General Purpose Register
  • RB
    Source General Purpose Register