![Intel NIOS II Owner Reference Manual Download Page 179](http://html1.mh-extra.com/html/intel/nios-ii/nios-ii_owner-reference-manual_2071826179.webp)
following
bge
. The two least-significant bits of IMM16 are
always zero, because instruction addresses must be word-
aligned.
Exceptions
Misaligned destination address
Instruction Type
I
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
0x0e
8.5.8. bgeu
Instruction
branch if greater than or equal unsigned
Operation
if ((unsigned) rA >= (unsigned) rB)
then PC ← PC + 4 + σ(IMM16)
else PC ← PC + 4
Assembler Syntax
bgeu rA, rB, label
Example
bgeu r6, r7, top_of_loop
Description
If (unsigned) rA >= (unsigned) rB, then
bgeu
transfers
program control to the instruction at label. In the instruction
encoding, the offset given by IMM16 is treated as a signed
number of bytes relative to the instruction immediately
following
bgeu
. The two least-significant bits of IMM16 are
always zero, because instruction addresses must be word-
aligned.
Exceptions
Misaligned destination address
Instruction Type
I
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
8.5.9. bgt
Instruction
branch if greater than signed
Operation
if ((signed) rA > (signed) rB)
continued...
8. Instruction Set Reference
NII-PRG | 2018.04.18
Nios II Processor Reference Guide
179