Specifications

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