# `tgeiu`

[MIPS Documentation](https://asm-editor.specy.app/documentation/mips.md) › [Instructions](https://asm-editor.specy.app/documentation/mips/instruction.md)

Web page: https://asm-editor.specy.app/documentation/mips/instruction/tgeiu

**Trap if greater or equal to immediate (unsigned)**

Category: System

Raises a trap exception if the register is greater than or equal to an immediate, as unsigned values.

## Forms

- `tgeiu $t1, imm16`

## Operands

- `$t1`: Any general-purpose register, `$0` to `$31`, using its numeric or named spelling, such as `$8` or `$t0` (`$zero` is `$0`; `$ra` is `$31`).
- `imm16`: A signed 16-bit immediate, `-32768` to `32767`.

## Description

The immediate is sign-extended to 32 bits then interpreted as unsigned.

## Example

```mips
# This named trap is expected to stop execution when its predicate is true.
li $t0, 5
tgeiu $t0, 5
li $t2, 99 # not reached
```
