Altera Nios II User Manual page 213

Hide thumbs Also See for Nios II:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents