MIPS R4000 Microprocessor User's Manual A-163
CPU Instruction Set Details
Format:
TEQ rs, rt
Description:
The contents of general register rt are compared to general register rs. If
the contents of general register rs are equal to the contents of general
register rt, a trap exception occurs.
The code field is available for use as software parameters, but is retrieved
by the exception handler only by loading the contents of the memory word
containing the instruction.
Operation:
Exceptions:
Trap exception
Trap If Equal
31 2526 2021 1516
SPECIAL rs rt
655
code TEQ
10 6
65 0
0 0 0 0 0 0 1 1 0 1 0 0
TEQ
TEQ
32, 64 T: if GPR[rs] = GPR[rt] then
TrapException
endif