pli
Prefixed Load Immediate
Loads a 34-bit signed immediate into a register. (Replaces multiple 'lis/ori' instructions).
Details
Loads a 34-bit signed immediate value into GPR RT, replacing the need for multiple lis/ori instructions. This is a prefixed instruction (2 words / 64 bits total) where the prefix encodes bits 0–17 and the main instruction encodes bits 18–33 of the immediate. No condition registers or status fields are affected.
Pseudocode Operation
RA ← SI34 (sign-extended to 64 bits)
Programming Note
The pli instruction is used to load an immediate value directly into a target register. This is useful for initializing registers with constants or small values. Ensure the immediate value fits within the 16-bit signed integer range to avoid overflow issues.
Example
Encoding
Operands
-
RT
Target -
SI34
Immediate