x86 Assembly Language Reference Manual

Exit Print View

Updated: December 2014
 
 

3.2.5 Shift and Rotate Instructions

The shift and rotate instructions shift and rotate the bits in their operands.

Table 3-6  Shift and Rotate Instructions
Oracle Solaris Mnemonic
Intel/AMD Mnemonic
Description
Notes
rcl{bwlq}
RCL
rotate through carry left
rclq valid only under –m64
rcr{bwlq}
RCR
rotate through carry right
rcrq valid only under –m64
rol{bwlq}
ROL
rotate left
rolq valid only under –m64
ror{bwlq}
ROR
rotate right
rorq valid only under –m64
sal{bwlq}
SAL
shift arithmetic left
salq valid only under –m64
sar{bwlq}
SAR
shift arithmetic right
sarq valid only under –m64
shl{bwlq}
SHL
shift logical left
shlq valid only under –m64
shld{bwlq}
SHLD
shift left double
shldq valid only under –m64
shr{bwlq}
SHR
shift logical right
shrq valid only under –m64
shrd{bwlq}
SHRD
shift right double
shrdq valid only under –m64