Chapter 8: Instruction Set Reference
Instruction Set Reference
cmple
Operation:
Assembler Syntax:
Example:
Description:
Usage:
Pseudo-instruction:
February 2014 Altera Corporation
if ((signed) rA <= (signed) rB)
then rC ← 1
else rC ← 0
cmple rC, rA, rB
cmple r6, r7, r8
If rA <= rB, then stores 1 to rC; otherwise stores 0 to rC.
cmple performs the signed <= operation of the C programming language.
cmple is implemented with the cmpge instruction by swapping its rA and rB operands.
compare less than or equal signed
Nios II Processor Reference Handbook
8–37