lxvp

Load VSX Vector Pair

lxvp XT, DQ(RA)

Loads a double quadword from memory into two VSX registers.

Details

The lxvp instruction loads a double quadword (128 bits) from memory into two VSX registers. The effective address is calculated as the sum of the contents of GPR[RA] and the sign-extended value of DQ.

Pseudocode Operation

if MSR.VSX=0 then VSX_Unavailable()
EAbase ←(RA=0) ? 0 : GPR[RA]
EAdisp ←EXTS64(DQ || 0b0000)
EA ←EAbase + EAdisp
load_data ←MEM(EA, 32)
VSR[32×TX+2×Tp]   ←load_data.bit[  0:127]
VSR[32×TX+2×Tp+1] ←load_data.bit[128:255]

Programming Note

For best performance, EA should be word-aligned.

Example

lxvp vs1, 0(r4)

Encoding

Binary Layout
6
0
Tp
1
TX
6
RA
10
DQ
11
0
16
 
Format DQ-form
Opcode 0xF4000000
Extension VSX
Registers Altered MSR

Operands

  • XT
    Target Even VSR
  • DQ
    Offset
  • RA
    Base
  • XTp
    Target Vector-Specific Register
  • disp
    Displacement field
  • VRT
    Target Vector-Specific Register
  • EA
    Effective Address