next up previous
Next: Branch and Jump Instructions Up: Description of the Machine Previous: Arithmetic and Logical Instructions

Comparison Instructions

In all instructions below, Src2 can either be a register or an immediate value (integer).

seq Rdest, Rsrc1, Src2Equal tex2html_wrap_inline1671
Set register Rdest to 1 if register Rsrc1 equals Src2 and to be 0 otherwise.

sge Rdest, Rsrc1, Src2Greater Than Equal tex2html_wrap_inline1671
sgeu Rdest, Rsrc1, Src2Greater Than Equal Unsigned tex2html_wrap_inline1671
Set register Rdest to 1 if register Rsrc1 is greater than or equal to Src2 and to 0 otherwise.

sgt Rdest, Rsrc1, Src2Greater Than tex2html_wrap_inline1671
sgtu Rdest, Rsrc1, Src2Greater Than Unsigned tex2html_wrap_inline1671
Set register Rdest to 1 if register Rsrc1 is greater than Src2 and to 0 otherwise.

sle Rdest, Rsrc1, Src2Less Than Equal tex2html_wrap_inline1671
sleu Rdest, Rsrc1, Src2Less Than Equal Unsigned tex2html_wrap_inline1671
Set register Rdest to 1 if register Rsrc1 is less than or equal to Src2 and to 0 otherwise.

slt Rdest, Rsrc1, Src2Less Than
slti Rdest, Rsrc1, ImmLess Than Immediate
sltu Rdest, Rsrc1, Src2Less Than Unsigned
sltiu Rdest, Rsrc1, ImmLess Than Unsigned Immediate
Set register Rdest to 1 if register Rsrc1 is less than Src2 (or Imm) and to 0 otherwise.

sne Rdest, Rsrc1, Src2Not Equal tex2html_wrap_inline1671
Set register Rdest to 1 if register Rsrc1 is not equal to Src2 and to 0 otherwise.



Mitch Roth
Fri Sep 6 23:25:26 ADT 1996