vec_srl: Vector Shift Right
d = vec_srl(a, b)Performs a right shift for a vector by a given number of bits. Each element of the result is
obtained by shifting the corresponding element of
a right by the number of bits
specified by the last 3 bits of every byte of b. The bits that are shifted out are
replaced by zeros.Note: For z14 or below, the low-order 3 bits of all byte
elements in
b must be the same, otherwise the result is undefined.| d | a | b | MIN ARCH |
|---|---|---|---|
| vector unsigned char | vector unsigned char | vector unsigned char | z13® 1 |
| vector signed char | vector signed char | z13 1 | |
| vector unsigned short | vector unsigned short | z13 1 | |
| vector signed short | vector signed short | z13 1 | |
| vector unsigned int | vector unsigned int | z13 1 | |
| vector signed int | vector signed int | z13 1 | |
| vector unsigned long long | vector unsigned long long | z13 1 | |
| vector signed long long | vector signed long long | z13 1 | |
|
Note:
1. This prototype has the exact same semantics as that in the OpenPOWER ABI for Linux® Supplement for the Power Architecture® 64-bit ELF V2 ABI, Revision 1.4.
|
|||