Nios II Classic Processor Reference Guide

ID 683620
Date 10/28/2016
Public
Document Table of Contents

8.5.10. bgtu

Instruction branch if greater than unsigned
Operation

if ((unsigned) rA > (unsigned) rB)

then PC ←  label

else PC ←  PC + 4

Assembler Syntax

bgtu rA, rB, label

Example

bgtu r6, r7, top_of_loop

Description

If (unsigned) rA > (unsigned) rB, then bgtu transfers program control to the instruction at label.

Pseudo-instruction

bgtu is implemented with the bltu instruction by swapping the register operands.