dcmpoq
Decimal Compare Ordered Quad-Precision
Compares two DFP values and sets the condition register based on their order.
Details
Compares two 128-bit Decimal Floating-Point values in vA and vB with signaling behavior on NaN (ordered comparison). The result is written to the condition register field BF as: LT, GT, EQ, or UN (unordered). If either operand is QNaN, the VXSNAN exception is raised and FPSCR[VE] or FPSCR[FEX] handling applies; SNaN always signals VXSNAN.
Pseudocode Operation
Programming Note
The dcmpoq instruction is used to compare two quad-precision decimal floating-point numbers. It sets the CR0 register field to indicate whether the first operand is less than, greater than, or equal to the second operand. Ensure that operands are properly aligned and that the FPSCR (Floating Point Status and Control Register) is correctly configured for accurate comparison results.
Example
Encoding
Operands
-
BF
CR Field -
vA
Src A -
vB
Src B -
RT
Target General Purpose Register -
RA
Source General Purpose Register -
RB
Source General Purpose Register