vec_cmplt
Purpose
Returns a vector containing the results of a less-than comparison between each set of corresponding elements of the given vectors.
This operation emulates the operation on long long vectors.
Syntax
d=vec_cmplt(a, b)
Result and argument types
The following tables describe the types of the returned value and the function arguments.
| d | a | b |
|---|---|---|
| vector bool char | vector signed char | vector signed char |
| vector unsigned char | vector unsigned char | |
| vector bool short | vector signed short | vector signed short |
| vector unsigned short | vector unsigned short | |
| vector bool int | vector signed int | vector signed int |
| vector unsigned int | vector unsigned int | |
| vector float | vector float | |
| vector bool long long | vector double | vector double |
Note: The following types are valid when -mcpu is set to target POWER7
processors, or higher. However, compiling with POWER8
processors or higher yields more efficient code generation by utilizing the available POWER8 instructions.
| d | a | b |
|---|---|---|
| vector bool long long | vector signed long long | vector signed long long |
| vector unsigned long long | vector unsigned long long |
Result value
For each element of the result, the value of each bit is 1 if the value of the corresponding
element of a is less than
the value of the corresponding element of b. Otherwise, the value of each bit is 0.