xxlor

VSX Vector Logical OR

xxlor XT, XA, XB

Bitwise OR.

Details

The xxlor instruction performs a bitwise logical OR operation between the contents of two VSX registers (XA and XB) and stores the result in another VSX register (XT).

Pseudocode Operation

if MSR.VSX=0 then VSX_Unavailable()
VSR[32×TX+T] ← VSR[32×AX+A] | VSR[32×BX+B]

Programming Note

The xxlor instruction is used to perform a bitwise OR operation on two VSX registers. Ensure that the VSX facility is enabled by checking and setting the MSR.VSX bit; otherwise, a VSX_Unavailable exception will be raised. This instruction operates on 128-bit vectors and requires proper alignment of the input and output registers.

Example

xxlor vs1, vs2, vs3

Encoding

Binary Layout
60
0
XT
6
XA
11
XB
16
448
21
 
Format XX3-form
Opcode 0xF00001C0
Extension VSX
Registers Altered MSR

Operands

  • XT
    Target
  • XA
    Src A
  • XB
    Src B