PCREL 011110 |
rt |
AUIPC 11110 |
immediate |
6 |
5 |
5 |
16 |
AUIPC rt, immediate |
microMIPS32 Release 6 |
Add Upper Immediate to PC |
Add Upper Immediate to PC
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.
None
This instruction is introduced by and required as of Release 6.
GPR[rt] = ( PC + sign_extend( immediate << 16 ) )
None