Altera Nios II User Manual page 218

Hide thumbs Also See for Nios II:
Table of Contents

Advertisement

8–38
cmplei
Operation:
Assembler Syntax:
Example:
Description:
Usage:
Pseudo-instruction:
Nios II Processor Reference Handbook
if ((signed) rA < (signed) IMMED)
then rB ← 1
else rB ← 0
cmplei rB, rA, IMMED
cmplei r6, r7, 100
Sign-extends the immediate value IMMED to 32 bits and compares it to the value of rA. If rA <=
σ (IMMED), then cmplei stores 1 to rB; otherwise stores 0 to rB.
cmplei performs the signed <= operation of the C programming language. The maximum
allowed value of IMMED is 32766. The minimum allowed value is –32769.
cmplei is implemented using a cmplti instruction with an IMM16 immediate value of IMMED
+ 1.
compare less than or equal signed immediate
Chapter 8: Instruction Set Reference
Instruction Set Reference
February 2014 Altera Corporation

Advertisement

Table of Contents
loading

Table of Contents