ddedpdq
Decimal Decode DPD Quad-Precision
Decodes BCD to 128-bit DFP.
Details
Decodes a binary-coded decimal (BCD) value from vB into a 128-bit decimal floating-point number, storing the result in vD. The sign field SP specifies how to interpret the sign encoding in the BCD representation. The instruction converts BCD digits to the internal DFP representation. The instruction is part of the Decimal Floating-Point extension.
Pseudocode Operation
vD ← DecodeDFP128(vB, SP)
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
Encoding
Operands
-
vD
Target -
vB
Source -
SP
Sign