Specifications
Instruction Fields
A = Register index of operand rA
B = Register index of operand rB
IMM16 = 16-bit signed immediate value
Bit Fields
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
A B IMM16
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
IMM16 0x2e
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.
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.
8-14
bgt
NII51017
2015.04.02
Altera Corporation
Instruction Set Reference
Send Feedback