dsri

Decimal Shift Coefficient Right Immediate

dsri FRT, FRA, SH

Shifts the coefficient of a DFP number right.

Encoding

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

Operands

  • FRT
    Target
  • FRA
    Source
  • SH
    Shift Amount

Example

dsri 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)