Assembly:

ALUIPC rt, %pcrel_hi(address)

nanoMIPS

Add aLigned Upper Immediate to PC

Purpose:

Add aLigned Upper Immediate to PC. Compute a 4KB aligned PC relative address by addingan upper 20 bitimmediate value to NextPC, discarding the lower 12 bits, and placing the resultin register $rt.

Availability:

nanoMIPS

Format:

111000

rt

s[20:12]

s[30:21]

1

s[31]

6

5

9

10

1

1

offset = sign_extend(s, from_nbits=32)
address = effective_address(CPU.next_pc, offset) & ~0xfff

Operation:

GPR[rt] = address

Exceptions:

None.