vec_cmpne

Purpose

Returns a vector containing the results of comparing each set of the corresponding elements of the given vectors for inequality.

Note: This built-in function is valid only when the -mcpu option is set to target POWER9 processors or higher.

Syntax

d=vec_cmpne(a, b)

Result and argument types

The following table describes the types of the returned value and the function arguments.

Table 1. Result and argument types
d a b
vector bool char vector signed char the same type as a
vector unsigned char
vector bool char
vector bool int vector signed int
vector unsigned int
vector bool int
vector float
vector bool short vector signed short
vector unsigned short
vector bool short
vector bool long long vector signed long long
vector unsigned long long
vector bool long long
vector double

Result value

For each element of the result, the value of each bit is 1 if the corresponding elements of a and b are not equal; otherwise, the value is 0.