roriw

Operands

reg, reg, imm

Rotate right by immediate (32 bit) : Set t1 to the low 32 bits of t2 rotated right by the immediate, sign extended (64bit)

Variants

  • Rotate right by immediate (32 bit) : Set t1 to the low 32 bits of t2 rotated right by the immediate, sign extended (64bit) roriw t1,t2,10

This example runs on RV64.

.text
li t0, 13
# t0=13, immediate 2; roriw writes 1073741827 to t2.
roriw t2, t0, 2