xxlorc
VSX Vector Logical OR with Complement
xxlorc XT, XA, XB
vD = vA | ~vB
Details
The xxlorc instruction performs a logical OR operation between the contents of two VSX registers, XA and XB, and then complements the result. The complemented result is placed into another VSX register, XT.
Pseudocode Operation
Programming Note
The xxlorc instruction is useful for performing bitwise operations on VSX registers. Ensure that the VSX facility is enabled by checking and setting the MSR.VSX bit; otherwise, a VSX_Unavailable exception will occur. The operation is performed on 128-bit vectors, so ensure proper alignment of the data in the registers to avoid unexpected results.
Example
xxlorc vs1, vs2, vs3
Encoding
Binary Layout
60
0
XT
6
XA
11
XB
16
452
21
Operands
-
XT
Target -
XA
Src A -
XB
Src B