dtstsfi
Decimal Test Significance Immediate
Tests the significance of a decimal floating-point value in FPR[FRB] against an immediate value UIM.
Details
The instruction compares the number of significant digits (NSDb) of the DFP value in FPR[FRB] with the reference significance specified by UIM. The result is placed into CR field BF and FPCC.
Pseudocode Operation
Programming Note
The dtstsfi instruction is used to compare the number of significant digits in a DFP value with a specified reference significance. Ensure that the UIM (Upper Immediate) is correctly set according to the desired comparison. This instruction operates at the problem state and may raise exceptions if the FPR[FRB] contains an invalid DFP value. Performance can be optimized by minimizing the use of this instruction in critical loops due to its dependency on floating-point operations.
Example
Encoding
Operands
-
BF
CR Field -
U
Imm -
FRB
Source -
UIM
Immediate Reference Significance