Download IDT MIPS Microprocessor Family Software Reference Manual

Transcript
TGE
Trap if Greater or Equal
31
26 25
SPECIAL
000000
6
21 20
rs
16 15
code
rt
5
Format:
Purpose:
TGE rs, rt
Description:
if (rs ≥ rt) then Trap
6
10
5
5
0
TGE
110000
6
MIPS II
To compare GPRs and do a conditional Trap.
Compare the contents of GPR rs and GPR rt as signed integers; if GPR rs is greater than
or equal to GPR rt then take a Trap exception.
The contents of the code field are ignored by hardware and may be used to encode
information for system software. To retrieve the information, system software must
load the instruction word from memory.
Restrictions:
None
Operation:
if GPR[rs] ≥ GPR[rt] then
SignalException(Trap)
endif
Exceptions:
Reserved Instruction
Trap
A-179