vnor

Vector NOR

vnor vD, vA, vB

Performs a logical NOR operation on the contents of two vector registers and stores the result in another vector register.

Details

The contents of VSR[VRA+32] are ORed with the contents of VSR[VRB+32], and the complemented result is placed into VSR[VRT+32].

Pseudocode Operation

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

Programming Note

The vnor instruction performs a bitwise NOR operation on two vector registers and stores the result in another register. Ensure that the Vector Facility is enabled by checking and setting the MSR.VEC bit; otherwise, a Vector_Unavailable exception will be raised. This instruction operates at the user privilege level.

Extended Mnemonics

Extended Mnemonic Equivalent Instruction
vnot

Example

vnor vd, va, vb

Encoding

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

Operands

  • vD
    Target
  • vA
    Src A
  • vB
    Src B
  • VRT
    Target Vector Register
  • VRA
    Source Vector Register
  • VRB
    Source Vector Register