dscri

DFP Shift Significand Right Immediate

dscri FRT, FRA, SH

Shifts the coefficient of a DFP number right.

Formerly listed on this site as dsri; the old address leads here. Renamed to dscri, the name Power ISA v3.1C and binutils give this instruction at this encoding; dsri is in neither.

Encoding

Binary Layout
59
0:5
FRT
6:10
FRA
11:15
SH
16:20
98
21:30
Rc
31
 
Format Z22-form
Opcode 0xEC0000C4

Operands

  • FRT
    Target
  • FRA
    Source
  • SH
    Shift Amount

Example

dscri f1, f2, 3

Registers Altered

FPSCR

Related

More in Decimal Floating-Point

Reference

Description

Shifts the coefficient of a 64-bit Decimal Floating-Point number right by an immediate amount (0-63 places), with zeros shifted in from the left. The exponent remains unchanged. This instruction is part of the Decimal Floating-Point extension and does not affect condition registers unless Rc=1.

Operation

coefficient ← coefficient >> SH
FRT ← DFP_construct(sign, exponent, coefficient)