lwepx

Load Word by External Process ID Indexed

lwepx RT, RA, RB

Loads a word using the External PID.

Formerly listed on this site as lwzepx; the old address leads here. Renamed to lwepx, the name binutils and Power ISA 2.07B (Book III-E) give the instruction; lwzepx is in neither.

Encoding

Binary Layout
31
0:5
RT
6:10
RA
11:15
RB
16:20
31
21:30
/
31
 
Format X-form
Opcode 0x7C00003E
Extension Embedded

Operands

  • RT
    Target
  • RA
    Base
  • RB
    Index

Example

lwepx r3, r4, r5

Related

More in Embedded

Reference

Not in Power ISA v3.1C

Description

Not in Power ISA v3.1C: this is an embedded-core instruction, and the encoding shown is binutils' (opcodes/ppc-opc.c), not the manual's. Loads a word (32-bit value) from memory using an address formed by adding RA and RB, performing the load using the External PID for address translation in embedded environments. The loaded word is zero-extended and placed into RT. No condition flags are affected.

Operation

EA ← (RA) + (RB)
RT ← (32 bits are 0) || ([EA + 0:3])