vor

Function

vor instruction abstraction.

The vor instruction performs bitwise OR on input vectors. Each vector has 8 × 256 bits.

Prototype

1
class vor(x, y, z)

Parameters

Parameter

Input/Output

Data Type

Description

x

Input

Tensor variable

Input x-vector tensor. INT16 and UINT16 are supported.

y

Input

Tensor variable

Input y-vector tensor. INT16 and UINT16 are supported.

z

Output

Tensor variable

Output y-vector tensor. INT16 and UINT16 are supported.

Example

1
2
3
4
5
6
from mskpp import vor, Tensor
ub_x, ub_y, ub_z = Tensor("UB"), Tensor("UB"), Tensor("UB")
gm_x,gm_y = Tensor("GM"), Tensor("GM")
ub_x.load(gm_x)
ub_y.load(gm_y)
out = vor(ub_x, ub_y, ub_z)()

Constraints

This instruction supports only the common mask mode and counter mode.