pli

Prefixed Load Immediate

pli RT, SI34

Loads a 34-bit signed immediate into a register. (Replaces multiple 'lis/ori' instructions).

Encoding

Binary Layout
1
0:5
2
6:7
R
8
0
9:13
D0
14:31
14
32:37
RT
38:42
0
43:47
D1
48:63
 
Format MLS:D-form
Opcode 0x0400000038000000
Extension Prefixed

Operands

  • RT
    Target
  • SI34
    Immediate

Example

pli r3, 16

Related

More in Prefixed

Reference

Description

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.

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.