ddedpdq

Decimal Decode DPD Quad-Precision

ddedpdq vD, vB, SP

Decodes BCD to 128-bit DFP.

Details

The ddedpdq instruction decodes a Decimal Packed Decimal (DPD) value from the source register into Binary Coded Decimal (BCD) format and stores it in the target register.

Pseudocode Operation

FRTp ← DecodeDPDtoBCD(FRBp)

Programming Note

The ddedpdq instruction is used to convert a DPD-encoded decimal value from one register to BCD format in another. Ensure that the source register contains valid DPD data; otherwise, the result will be undefined. This operation does not require any specific privilege level but may alter the FPSCR register based on the conversion outcome.

Example

ddedpdq vd, vb, 0

Encoding

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

Operands

  • vD
    Target
  • vB
    Source
  • SP
    Sign