control[0]: right vs. left |
|
| shift | dir | Register | Immediate | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| logical | left | sll| slli
| logical | right | srl | srli
| arithmetic | right | sra | srai
| rotate | left | rol | roli
| rotate | right | ror | rori
| |
| pseudo-instruction |
sll| rC ← rA << (rB[4:0])
| slli | rC ← rA << (sh)
| |
rB is zero for slli
| control[4:0] | operation |
|---|---|
| 00xxx | ALU operations |
| 10xxx | shift |
| 11xxx | shift - immediate |
control[4:3] is part of the data multiplexer control
Maintained by John Loomis, last updated 22 October 2008