Encoding:

AUI

000100

rt

00000

immediate

6

5

5

16

Format:

LUI rt, immediate 

microMIPS, 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.

Availability and Compatibility

This instruction has been recoded for Release 6.

Operation:

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

Exceptions:

None

Programming Notes:

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