vec_slv

Purpose

Left shifts the elements of a given vector by a given number of bits.

Note: This built-in function is valid only when the -mcpu option is set to target POWER9 processors or higher.

Syntax

d=vec_slv(a, b)

Result and argument types

The result and arguments are all of the vector unsigned char type.

Result value

Suppose the following information. Element i of the result vector contains the same bit string as bit Si - bit Si+7 of Xi.
  • Si (0<=i<=15) denotes the value in the three least-significant bits of element i of b.
  • Xi (0<=i<=14) denotes the halfword formed by concatenating elements i and i+1 of a.
  • X15 denotes the halfword formed by concatenating element 15 of a and a zero byte.