vec_cmprg_cc: Vector Compare Ranges with Condition Code

e = vec_cmprg_cc(a, b, c, d)
Check if each element of a is within any of the ranges specified by b and c. Each even-odd element pairs of b define values for the limits of the ranges. The corresponding even-odd pairs of elements in c control how the comparison to be performed, in the following way:
Comparison for vector unsigned char for vector unsigned short for vector unsigned int
ignore - result of comparison always TRUE 0 0 0
equal 0x80 0x8000 0x80000000
not equal 0x60 0x6000 0x60000000
greater than 0x20 0x2000 0x20000000
greater than or equal 0xA0 0xA000 0xA0000000
less than 0x40 0x4000 0x40000000
less than and equal 0xC0 0xC000 0xC0000000
force to FALSE 0xE0 0xE000 0xE0000000

For each element of the result, the value of each bit is 1 if the corresponding element of a was contained in any of the specified ranges. Otherwise, the value of each bit is 0.

d is set to 1, if there is at least one element of a found in any of the ranges. Otherwise, d is set to 3.

Table 1. Vector Compare Ranges with Condition Code
e a b c d
vector bool char vector unsigned char vector unsigned char vector unsigned char int *
vector bool short vector unsigned short vector unsigned short vector unsigned short
vector bool int vector unsigned int vector unsigned int vector unsigned int