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

Syntax

i64.rotr

Stack In

i64 The first value to be rotated right.
i64 The second value to rotate the bits by.

Stack Out

i64 The result of rotating the first value right by the second value's number of bits.

Example

;; Push the i64 value 0x0123456789ABCDEF onto the stack
i64.const 0x0123456789ABCDEF

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

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

;; The stack contains an i64 value of 0xEF0123456789ABCD