Encoding:

EXTEND

11110

imm 10:4

imm

14:11

RRI-A

01000

rx

ry

ADDIU

0

imm 3:0

5

7

4

5

3

3

1

4

Format:

ADDIU ry, rx, immediate

MIPS16e

Add Immediate Unsigned Word (3-Operand, Extended)

Purpose:

Add Immediate Unsigned Word (3-Operand, Extended)

To add a constant to a 32-bit integer.

Description:

GPR[ry] = GPR[rx] + immediate

The 15-bit immediate is sign-extended and then added to the contents of GPR rx to form a 32-bit result. The result is placed into GPR ry.

No integer overfl w exception occurs under any circumstances.

Restrictions:

None

Operation:

temp = GPR[Xlat(rx)] + sign_extend(immediate)
GPR[Xlat(ry)] = temp

Exceptions:

None

Programming Notes:

The term "unsigned" in the instruction name is a misnomer;this operation is 32-bit modulo arithmetic that does not trap on overfl w. It is appropriate for unsigned arithmetic, such as address arithmetic, or integer arithmetic environments that ignore overfl w, such as C language arithmetic.