Encoding:

PCREL

011110

rt

AUIPC

11110

immediate

6

5

5

16

Format:

AUIPC rt, immediate

microMIPS32 Release 6

Add Upper Immediate to PC

Purpose:

Add Upper Immediate to PC

Description:

GPR[rt] =  ( 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 AUIPC instruction. The result is placed in GPR rt.

In a MIPS64 implementation, the 32-bit result is sign extended from bit 31 to bit 63.

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 address 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] =  ( PC + sign_extend( immediate << 16 ) )

Exceptions:

None