vec_signexti
Purpose
Sign-extends smaller elements of a source vector to word length in the result vector.
Note: This built-in function
is valid only when the -mcpu option is set to target POWER9 processors
or higher.
Syntax
d=vec_signexti (a)
Result and argument types
The following table describes the types of the returned value and the function arguments.
| d | a |
|---|---|
| vector signed int | vector signed char |
| vector signed short |
Result value
Each word element of d
is computed by sign-extending the rightmost element in the corresponding word of a.