lxvx

Load VSX Vector Indexed X-form

lxvx XT,RA,RB

Loads a quadword from memory into a VSX register.

Details

The lxvx instruction loads a quadword from the effective address (EA) calculated by adding the contents of GPR[RA] and GPR[RB]. The EA is zero if RA is 0. The loaded data is placed into VSR[XT], where XT = 32×TX + T.

Pseudocode Operation

if TX=0 & MSR.VSX=0 then VSX_Unavailable()
if TX=1 & MSR.VEC=0 then Vector_Unavailable()
EA ←((RA=0) ? 0 : GPR[RA]) + GPR[RB]
VSR[32×TX+T] ←MEM(EA,16)

Programming Note

The lxvx instruction is used to load vector data from memory into VSX registers.

Example

lxvx vs1, r4, r5

Encoding

Binary Layout
31
0
XT
6
RA
11
RB
16
268
21
TX
31
 
Format X-form
Opcode 0x7C000218
Extension VSX
Registers Altered MSR

Operands

  • XT
    Target VSX Register
  • RA
    Source General Purpose Register
  • RB
    Source General Purpose Register
  • xT
    Target Vector-Scalar Register
  • rA
    Index General Purpose Register
  • rB
    Base Address General Purpose Register