d = vec_cmpeq_or_0_idx(a, b)
Returns the lowest byte-index of comparing each set of corresponding elements of the given vectors for equality, and comparing each elements of a against 0. If the two vectors are not equal, and no elements of a is 0, the result is 16.
The result is placed into byte element seven of the returned vector, and all other bytes are set to 0.
d | a | b |
---|---|---|
vector signed char | vector signed char | vector signed char |
vector unsigned char | vector bool char | vector bool char |
vector unsigned char | vector unsigned char | |
vector signed short | vector signed short | vector signed short |
vector unsigned short | vector bool short | vector bool short |
vector unsigned short | vector unsigned short | |
vector signed int | vector signed int | vector signed int |
vector unsigned int | vector bool int | vector bool int |
vector unsigned int | vector unsigned int |