Encoding:

PCREL

011110

rt

ALUIPC

11111

immediate

6

5

5

16

Format:

ALUIPC rt,immediate

microMIPS32 Release 6

Aligned Add Upper Immediate to PC

Purpose:

Aligned Add Upper Immediate to PC

Description:

GPR[rt] = ~0x0FFFF & ( PC + sign_extend( immediate << 16 ) )

This instruction performs a PC-relative address calculation. The 16-bit immediate is shifted left by 16 bits, signextended, and added to the address of the ALUIPC instruction. The low 16 bits of the result are cleared, that is the result is aligned on a 64K boundary. The result is placed in GPR rt.

This instruction is both a 32-bit and a 64-bit instruction. The 64-bit result is sign-extended by the same rules that govern sign-extension of virtual addresses in the MIPS64 Architecture, as described by the function effective_address() in the Privileged Resource Architecture.

Restrictions:

None

Availability and Compatibility:

This instruction is introduced by and required as of Release 6.

Operation:

GPR[rt] = ~0x0FFFF &  ( PC + sign_extend( immediate << 16 ) )

Exceptions:

None