Specifications

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