PCREL 011110 |
rt |
ADDIUPC 00 |
immediate |
6 |
5 |
2 |
19 |
ADDIUPC rt,immediate |
microMIPS32 Release 6 |
Add Immediate to PC (unsigned - non-trapping) |
Add Immediate to PC (unsigned - non-trapping)
GPR[rt] = ( PC & ~0x3 + sign_extend( immediate << 2 ) )
This instruction performs a PC-relative address calculation. The 19-bit immediate is shifted left by 2 bits, signextended, and added to the address of the ADDIUPC instruction. 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.
None
This instruction is introduced by and required as of Release 6.
GPR[rst] = ( PC & ~0x3 + sign_extend( immediate << 2 ) )
None
The term "unsigned" in this instruction mnemonic is a misnomer. "Unsigned" here means "non-trapping". It does not trap on a signed 32-bit overflow. ADDIUPC corresponds to unsigned ADDIU, which does not trap on overflow, as opposed to ADDI, which does trap on overflow.