drsp.
Decimal Round To DFP Short (Record)
drsp. FRT,FRB
Rounds DFP Long (64-bit) to DFP Short (32-bit compressed).
Encoding
Binary Layout
59
0:5
FRT
6:10
0
11:15
FRB
16:20
770
21:30
/
31
Operands
-
FRT
Target -
FRB
Source
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
The DFP long operand in FRB is converted and rounded to DFP short format. The DFP short value is extended on the left with zeros to form a 64-bit entity and placed into FRT. The sign of the result is the same as the sign of the source operand.
Operation
if 'drsp' then
FRT <- (FRB) rounded to DFP short format
if Rc=1 then
CR0, CR1 <- updated based on result
Programming Note
Note that DFP short format is a storage-only format. Therefore, conversion of a long SNaN to short for mat will not cause an exception.