The following can be specified as imm:
Rotates the word data of general-purpose register reg2 to the left by the specified shift amount, which is indicated by a 5-bit immediate value zero-extended to word length. The result is written to general-purpose register reg3. General-purpose register reg2 is not affected.
Rotates the word data of general-purpose register reg2 to the left by the specified shift amount indicated by the lower 5 bits of general-purpose register reg1. The result is written to general-purpose register reg3. General-purpose registers reg1 and reg2 are not affected.
If the following is specified as imm in syntax "rotl imm, reg2, reg3", the assembler generates one rotlNote machine instruction. |
The rotl machine instruction takes a register or immediate value in the range of 0 to 31 (0 to 0x1F) as the first operand. |