SPECIAL 000000 |
0000 |
R 1 |
rt |
rd |
sa |
SRL 000010 |
6 |
4 |
1 |
5 |
5 |
5 |
6 |
ROTR rd, rt, sa |
SmartMIPS Crypto |
Rotate Word Right |
Rotate Word Right
To execute a logical right-rotate of a word by a fixed number of bits
GPR[rd] = GPR[rt] ↔ (right) sa
The contents ofthe low-order 32-bit word of GPR rt are rotated right;the word resultis placed in GPR rd. The bit-rotate amount is specified by sa.
if ((ArchitectureRevision() < 2) and (Config3SM = 0)) then UNPREDICTABLE endif s = sa temp = GPR[rt]s-1..0 || GPR[rt]31..s GPR[rd] = temp
Reserved Instruction