Nios® II Processor Reference Guide

ID 683836
Date 10/22/2020
Public
Document Table of Contents

8.5.9. bgt

Instruction branch if greater than signed
Operation

if ((signed) rA > (signed) rB)

then PC ←  label

else PC ←  PC + 4

Assembler Syntax

bgt rA, rB, label

Example

bgt r6, r7, top_of_loop

Description

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

Pseudo-instruction

bgt is implemented with the blt instruction by swapping the register operands.

Did you find the information on this page useful?

Characters remaining:

Feedback Message