The TEST statement has the following form:
In the first form, it takes the first alternative if the arithmetic expression is negative, the second if it is zero, and the third if it is positive.
The COMPARE Statement has the following form:
This statement is equivalent to
only if the subtraction does not result in an overflow; the COMPARE statement is guaranteed to select the correct alternative even if the subtraction of the values of the two arithmetic expressions would result in an overflow, whether fixed-point or floating-point.