3.6.1 Shift Operations

The variable shift instructions shifts both halves by the same scalar amount, so as to have compatible form with the constant shift instructions. There is no support for vector shift by vector amount, which requires extra hardware not used by ordinary scalar shifts but is rarely utilized.

Constant Shift

Mnemonic Format Unit Semantics Description
sllwv sR su 2{ x.wv <<= sa } Shift Left Logical Word Vector
srlwv sR su 2{ x.uwv >>= sa } Shift Right Logical Word Vector
srawv sR su 2{ x.wv >>= sa } Shift Right Arithmetic Word Vector


Variable Shift

Mnemonic Format Unit Semantics Description
vsllwv bR su 2{ x.wv <<= (y.i & 0x3F) } Variable Shift Left Logical Word Vector
vsrlwv bR su 2{ x.uwv >>= (y.i & 0x3F) } Variable Shift Right Logical Word Vector
vsrawv bR su 2{ x.wv >>= (y.i & 0x3F) } Variable Shift Right Arithmetic Word Vector