Encoding:

Pre-Release 6

LUI

001111

0

00000

rt

immediate

6

5

5

16

Release 6

AUI

001111

00000

rt

immediate

6

5

5

16

Format:

LUI rt, immediate 

MIPS32, Assembly Idiom Release 6

Load Upper Immediate

Purpose:

Load Upper Immediate

To load a constant into the upper half of a word

Description:

 GPR[rt] = sign_extend(immediate || 016)

The 16-bit immediate is shifted left 16 bits and concatenated with 16 bits of low-order zeros. The 32-bit result is signextended and placed into GPR rt.

Restrictions:

None.

Operation:

GPR[rt] = sign_extend(immediate || 016)

Exceptions:

None

Programming Notes:

In Release 6, LUI is an assembly idiom of AUI with rs=0.