lxvkq

Load VSX Vector Special Value Quadword

lxvkq XT,UIM

Loads a special value into a VSX vector register.

Encoding

Binary Layout
T
0:15
UIM
16:20
TX
21:31
 
Format X-form
Opcode 0xF01F02D0
Extension VSX

Operands

  • XT
    Target Vector-Specific Register
  • UIM
    Unspecified Immediate, specifies which special value to load

Example

lxvkq vs1, uim

Registers Altered

MSR

Related

More in VSX

Reference

Description

Loads a special constant vector value into VSX vector register XT based on the 5-bit unsigned immediate UIM. The instruction provides a fast way to initialize vectors with commonly used special values. No condition registers or status fields are affected.

Operation

case UIM of
  0:  XT ← 0x00000000_00000000_00000000_00000000
  1:  XT ← 0xFFFFFFFF_FFFFFFFF_FFFFFFFF_FFFFFFFF
  2:  XT ← 0x00000000_00000000_00000000_00000001
  3:  XT ← 0x00000001_00000001_00000001_00000001
  ... # other special values as defined in ISA
endcase

Programming Note

Loads a VSX register with a constant vector value determined by UIM. The 5-bit UIM field selects from a set of predefined quadword constants (e.g., IEEE infinity, NaN, zero). No memory access is performed. This instruction cannot be used to load arbitrary immediates.