vor

Vector OR

vor vD, vA, vB

Bitwise OR of two 128-bit vectors.

Details

The Vector OR instruction performs a bitwise OR operation on the contents of two vector registers and stores the result in another vector register.

Pseudocode Operation

if MSR.VEC=0 then Vector_Unavailable()
VSR[VRT+32] ← VSR[VRA+32] | VSR[VRB+32]

Programming Note

The vor instruction requires the Vector Facility to be enabled in the MSR register; otherwise, it will raise a Vector Unavailable exception. Ensure that the vector registers involved are properly aligned and contain valid data for accurate results.

Example

vor vd, va, vb

Encoding

Binary Layout
4
0
vD
6
vA
11
vB
16
1156
21
 
Format VX-form
Opcode 0x10000484
Extension VMX (AltiVec)
Registers Altered MSR

Operands

  • vD
    Target
  • vA
    Src A
  • vB
    Src B