vec_cmpne
Purpose
Returns a vector containing the results of comparing each set of the corresponding elements of the given vectors for inequality.
This built-in function is valid only when -qarch(-mcpu) is set to utilize the POWER9™ technology and the altivec.h file is included.
Syntax
d=vec_cmpne(a, b)
Result and argument types
The following table describes the types of the returned value and the function arguments.
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.