Nios® II Processor Reference Guide

ID 683836
Date 8/28/2023
Public
Document Table of Contents

8.5.33. cmpleu

Instruction compare less than or equal unsigned
Operation

if ((unsigned) rA < (unsigned) rB)

then rC ←  1

else rC ←  0

Assembler Syntax

cmpleu rC, rA, rB

Example

cmpleu r6, r7, r8

Description

If rA <= rB, then stores 1 to rC; otherwise stores 0 to rC.

Usage

cmpleu performs the unsigned <= operation of the C programming language.

Pseudo-instruction

cmpleu is implemented with the cmpgeu instruction by swapping its rA and rB operands.