Specifications

Table Of Contents
Altera Corporation 8–35
October 2007 Nios II Processor Reference Handbook
cmpgt
cmpgt
compare greater than signed
Operation: if ((signed) rA > (signed) rB)
then rC
1
else rC
0
Assembler Syntax:
cmpgt rC, rA, rB
Example:
cmpgt r6, r7, r8
Description: If rA > rB, then stores 1 to rC; otherwise stores 0 to rC.
Usage:
cmpgt performs the signed > operation of the C programming language.
Pseudoinstruction:
cmpgt is implemented with the cmplt instruction by swapping its rA and rB
operands.