Download Altera Nios II Specifications

Transcript
bge
bge
branch if greater than or equal signed
Operation:
if ((signed) rA >= (signed) rB)
then PC ← PC + 4 + σ (IMM16)
else PC ← PC + 4
Assembler Syntax:
bge rA, rB, label
Example:
bge r6, r7, top_of_loop
Description:
If (signed) rA >= (signed) rB, then bge 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 bge. The two leastsignificant bits of IMM16 are always zero, because instruction addresses must be
word-aligned.
Instruction Type:
I
Instruction Fields:
A = Register index of operand rA
B = Register index of operand rB
IMM16 = 16-bit signed immediate value
31
30
29
28
27
26
A
Altera Corporation
October 2007
25
24
B
23
22
21
20
19
18
17
16
15
14
13
IMM16
12
11
10
9
8
7
6
5
4
3
2
1
0
0x0e
8–15
Nios II Processor Reference Handbook