ror

Operands

reg, reg, reg

Rotate right : Set t1 to t2 rotated right by the low bits of t3, so bits shifted off the bottom re-enter at the top

Variants

  • Rotate right : Set t1 to t2 rotated right by the low bits of t3, so bits shifted off the bottom re-enter at the top ror t1,t2,t3
.text
li t0, 13
li t1, 2
# t0=13, t1=2; ror writes 1073741827 to t2.
ror t2, t0, t1