Cmpgtui; Cmple; Cmplei - Intel NIOS II Owner Reference Manual

Table of Contents

Advertisement

Example
Description
Usage
Pseudo-instruction

8.5.30. cmpgtui

Instruction
Operation
Assembler Syntax
Example
Description
Usage
Pseudo-instruction

8.5.31. cmple

Instruction
Operation
Assembler Syntax
Example
Description
Usage
Pseudo-instruction

8.5.32. cmplei

Instruction
Operation
Assembler Syntax
Nios II Processor Reference Guide
190
cmpgtu r6, r7, r8
If rA > rB, then stores 1 to rC; otherwise stores 0 to rC.
performs the unsigned > operation of the C
cmpgtu
programming language.
is implemented with the
cmpgtu
swapping its rA and rB operands.
compare greater than unsigned immediate
if ((unsigned) rA > (unsigned) IMMED)
then rB
1
else rB
0
cmpgtui rB, rA, IMMED
cmpgtui r6, r7, 100
Zero-extends the immediate value IMMED to 32 bits and
compares it to the value of rA. If rA > IMMED, then
stores 1 to rB; otherwise stores 0 to rB.
cmpgtui
performs the unsigned > operation of the C
cmpgtui
programming language. The maximum allowed value of
IMMED is 65534. The minimum allowed value is 0.
is implemented using a
cmpgtui
an IMM16 immediate value of IMMED + 1.
compare less than or equal signed
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.
performs the signed <= operation of the C
cmple
programming language.
is implemented with the
cmple
swapping its rA and rB operands.
compare less than or equal signed immediate
if ((signed) rA < (signed) IMMED)
then rB
1
else rB
0
cmplei rB, rA, IMMED
8. Instruction Set Reference
NII-PRG | 2018.04.18
instruction by
cmpltu
instruction with
cmpgeui
instruction by
cmpge
continued...

Advertisement

Table of Contents
loading

Table of Contents