vec_sldw
Purpose
Shift Left Double by Word Immediate
Returns a vector by concatenating a and b, and then left-shifting the result vector by multiples of 4 bytes. c specifies the offset for the shifting operation.
Syntax
d=vec_sldw(a, b, c)
Result and argument types
The following table describes the types of the returned value and the function arguments.
d | a | b | c |
---|---|---|---|
vector bool char | vector bool char | vector bool char | 0–3 |
vector signed char | vector signed char | vector signed char | |
vector unsigned char | vector unsigned char | vector unsigned char | |
vector bool short | vector bool short | vector bool short | |
vector signed short | vector signed short | vector signed short | |
vector unsigned short | vector unsigned short | vector unsigned short | |
vector bool int | vector bool int | vector bool int | |
vector signed int | vector signed int | vector signed int | |
vector unsigned int | vector unsigned int | vector unsigned int | |
vector bool long long | vector bool long long | vector bool long long | |
vector signed long long | vector signed long long | vector signed long long | |
vector unsigned long long | vector unsigned long long | vector unsigned long long | |
vector float | vector float | vector float | |
vector double | vector double | vector double |
Result value
After left-shifting the concatenated a and b by multiples of 4 bytes specified by c, the function takes the four leftmost 4-byte values and forms the result vector.