User`s guide

Condition Codes [D]
You can test the condition codes generated by an expression by using the
MTA_TEST_CC intrinsic. The eight possible condition code values and their default
meanings are shown in the following table. The Examples column show the
operations that meet the criteria for the condition code, where 0, p, and n stand for
zero, a positive integer, and a negative integer, respectively. For more information,
see Testing Expressions Using Condition Codes on page 34 and Chapter 4 of the
Cray XMT Principles of Operation.
Table 2. Condition Codes
Name Meaning Examples
COND_ZERO_NC Zero, no carry 0 = 0+0
COND_NEG_NC Negative, no carry n = p+n, n = p-p
COND_POS_NC Positive, no carry p = p+p, p = p-n
COND_OVFNAN_NC Overflow/NaN, no carry n = p+p, n = p-p
COND_ZERO_C Zero, carry 0 = n+p, 0 = n-n
COND_NEG_C Negative, carry n = n+n, n = n-p
COND_POS_C Positive, carry p = n+p, p = n-n
COND_OVFNAN_C Overflow/NaN, carry p = n+n, p = n-p
Most of the important condition masks have one or more names. The named
condition masks are shown in Table 3. For more information, see Cray XMT
Programming Model.
Table 3. Condition Masks
Name Description
Condition Mask: Manifest
IF_ALWAYS Always
IF_NEVER Never
Condition Mask: Equality
IF_EQ y = z (integer, unsigned, float)
S247920 133