Encoding:

EXTEND

11110

Imm[10:5]

Imm[15:11]

LI

01101

rx

sel = 1

Imm[4:0]

5

5

5

5

5

3

3

Format:

LUI rx, immediate 

MIPS16e2

Load Upper Immediate Extended

Purpose:

Load Upper Immediate Extended

To load a constant into the upper half of a word.

Description:

 GPR[rx] = 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 placed into GPR rx.

Restrictions:

Unpredictable prior to MIPS16e2.

Operation:

GPR[XLat[rx]] = immediate || 016

Exceptions:

None