i32.rotl
Pops two i32 values off the stack, rotates the first value to the left by the second number of bits, and then pushes the result back on to the stack. This is similar to shifting the bits left, but any bits on the left that would have need lost, are instead moved to the right.

Syntax

i32.rotl

Stack In

i32 The first value to be rotated left.
i32 The second value to rotate the bits by.

Stack Out

i32 The result of rotating the first value left by the second value's number of bits.

Example

;; Push the i32 value 0x12345678 onto the stack
i32.const 0x12345678

;; Push the i32 value 8 onto the stack
i32.const 8

;; Pop the two i32 values off the stack, rotate the first value left
;; by the second value's number of bits and push the result
;; back onto the stack
i32.rotl

;; The stack contains an i32 value of 0x34567812