vslh
Vector Shift Left Halfword
vslh vD, vA, vB
Shifts each halfword left.
Details
The Vector Shift Left Halfword instruction shifts each halfword element of the source vector left by a specified number of bits. The shift amount is taken from the third operand vector.
Pseudocode Operation
Programming Note
The vslh instruction shifts each halfword element of the source vector left by a specified number of bits. Ensure that the shift amount is within the valid range to avoid unexpected results. This instruction operates at the user privilege level and does not generate exceptions under normal conditions.
Example
vslh vd, va, vb
Encoding
Binary Layout
4
0
vD
6
vA
11
vB
16
324
21
Operands
-
vD
Target -
vA
Data -
vB
Shift