teqi

Operands

$reg, imm

Trap if equal to immediate : Raises a trap exception if $t1 == immediate (sign-extended to 32 bits). Immediate variant of 'teq'. Useful for checking a register against a known constant at runtime.

Variants

  • Trap if equal to immediate : Raises a trap exception if $t1 == immediate (sign-extended to 32 bits). Immediate variant of 'teq'. Useful for checking a register against a known constant at runtime. teqi $t1,-100
# This named trap is expected to stop execution when its predicate is true.
li $t0, 5
teqi $t0, 5
li $t2, 99 # not reached