dctdp

Decimal Convert To DFP Long

dctdp FRT, FRB

Converts DFP Short (32-bit compressed) to DFP Long (64-bit).

Details

The DFP short operand in bits 32:63 of FRB is converted to DFP long format and the converted result is placed into FRT. The sign of the result is the same as the sign of the source operand. The ideal exponent is the exponent of the source operand.

Pseudocode Operation

FRT <- ConvertToDFPLong(FRB)

Programming Note

Note that DFP short format is a storage-only format. Therefore, conversion of a short SNaN to long format will not cause an exception and the SNaN is preserved. Subsequent operation on that SNaN in long format will cause an exception.

Example

dctdp f1, f3

Encoding

Binary Layout
59
0
FRT
6
/
11
FRB
16
258
21
Rc
31
 
Format X-form
Opcode 0xEC000204
Extension Decimal Floating-Point
Registers Altered FPSCR (FPRF, FR, FI), CR (CR1)

Operands

  • FRT
    Target
  • FRB
    Source