rol

Operands

reg, reg, reg

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

Variants

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