The shift and rotate instructions shift and rotate the bits in their operands.
Table 3–5 Shift and Rotate Instructions
Solaris Mnemonic |
Intel/AMD Mnemonic |
Description |
Notes |
---|---|---|---|
RCL |
rotate through carry left |
rclq valid only under -xarch=amd64 |
|
RCR |
rotate through carry right |
rcrq valid only under -xarch=amd64 |
|
ROL |
rotate left |
rolq valid only under -xarch=amd64 |
|
ROR |
rotate right |
rorq valid only under -xarch=amd64 |
|
SAL |
shift arithmetic left |
salq valid only under -xarch=amd64 |
|
SAR |
shift arithmetic right |
sarq valid only under -xarch=amd64 |
|
SHL |
shift logical left |
shlq valid only under -xarch=amd64 |
|
SHLD |
shift left double |
shldq valid only under -xarch=amd64 |
|
SHR |
shift logical right |
shrq valid only under -xarch=amd64 |
|
SHRD |
shift right double |
shrdq valid only under -xarch=amd64 |