vec_cmpeq: Vector Compare Equal

d = vec_cmpeq(a, b)

Returns a vector containing the results of comparing each set of corresponding elements of the given vectors for equality. For each element of the result, the value of each bit is 1 if the corresponding elements of a and b are equal. Otherwise, the value of each bit is 0.

Table 1. Vector Compare Equal
d a b
vector bool char vector bool char vector bool char
vector signed char vector signed char
vector unsigned char vector unsigned char
vector bool short vector bool short vector bool short
vector signed short vector signed short
vector unsigned short vector unsigned short
vector bool int vector bool int vector bool int
vector signed int vector signed int
vector unsigned int vector unsigned int
vector bool long long vector bool long long vector bool long long
vector signed long long vector signed long long
vector unsigned long long vector unsigned long long
vector double vector double