vrlh
Vector Rotate Left Halfword
Rotates each halfword left.
Details
The Vector Rotate Left Halfword instruction rotates each halfword element of the source vector left by a specified number of bits determined by another vector's elements. The result is stored in the destination vector.
Pseudocode Operation
Programming Note
The vrlh instruction is commonly used for bit manipulation tasks that require rotating halfwords within a vector. Ensure that the source and destination vectors are properly aligned to avoid data corruption. This instruction operates at user privilege level, but if MSR.VEC is not set, it will raise a Vector_Unavailable exception. Performance may vary based on the specific implementation and the alignment of the input vectors.
Example
Encoding
Operands
-
vD
Target -
vA
Data -
vB
Rotate Count