5.2.6.2
Compare and Increment or Decrement
These instructions compare two operands, set the condition code bits according to the compare
results, then increment or decrement one of the operands:
cmpinci
compare and increment integer
cmpinco
compare and increment ordinal
cmpdeci
compare and decrement integer
cmpdeco
compare and decrement ordinal
These all use the REG format and can specify literals or local or global registers. They are an archi-
tectural performance optimization which allows two register operations (e.g., compare and add) to
execute in a single cycle. The intended use of these instructions is at the end of iterative loops.
5.2.6.3
Test Condition Codes
These test instructions allow the state of the condition code flags to be tested:
teste
test for equal
testne
test for not equal
testl
test for less
testle
test for less or equal
testg
test for greater
testge
test for greater or equal
testo
test for ordered
testno
test for unordered
When the condition code matches the instruction-specified condition, a TRUE (0000 0001H) is
stored in a destination register; otherwise, a FALSE (0000 0000H) is stored. All use the COBR
format and can operate on local and global registers.
INSTRUCTION SET OVERVIEW
5
5-13