Rotate right : Sets $t1 = $t2 rotated right by immediate (0-31 bits). Unlike 'srl', bits shifted off the right re-enter on the left rather than being discarded, so no information is lost. Encoded as 'srl' with bit 21 set.
rotr
Operands
$reg, $reg, immVariants
- Rotate right : Sets $t1 = $t2 rotated right by immediate (0-31 bits). Unlike 'srl', bits shifted off the right re-enter on the left rather than being discarded, so no information is lost. Encoded as 'srl' with bit 21 set. rotr $t1,$t2,10
# Shift or rotate an initialized word; inspect $t2: 0x20000001.
li $t0, 0x12
rotr $t2, $t0, 4