Skip to content

Vector Bitwise Operations ​

These instructions shift or rotate corresponding integer elements in two arrays.

OpcodeArgumentsOperands (stack)Description
shlvtypevalues, countsReplaces two equal-length arrays with element-wise left shifts; the top array supplies counts, and type must be sht, int, lng, or oct.
shrvtypevalues, countsReplaces two equal-length arrays with element-wise right shifts; the top array supplies counts, and type must be sht, int, lng, or oct.
rolvtypevalues, countsReplaces two equal-length arrays with element-wise left rotations; the top array supplies counts, and type must be sht, int, lng, or oct.
rorvtypevalues, countsReplaces two equal-length arrays with element-wise right rotations; the top array supplies counts, and type must be sht, int, lng, or oct.