vec_cmpne_idx_cc: Vector Compare Not Equal Index with Condition Code

d = vec_cmpne_idx_cc(a, b, c)

Returns the lowest byte-index of comparing each set of corresponding elements of the given vectors for inequality. If the two vectors are equal, the result is 16.

c is set to the following value:
  • 1 - if there is a mismatch and that first element from the 0-index of a is less than the corresponding element of b.
  • 2 - if there is a mismatch and that element from the 0-index of a is greater than the corresponding element of b.
  • 3 - if the two vectors are equal.

The result is placed into byte element seven of the returned vector, and all other bytes are set to 0.

Table 1. Vector Compare Not Equal Index with Condition Code
d a b c
vector signed char vector signed char vector signed char int *
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