NonConfidential  PDF version  ARM DUI0379G  
 
Home > Symbols, Literals, Expressions, and Operators > Shift operators 
Shift operators act on numeric expressions, by shifting or rotating the first operand by the amount specified by the second.
Table 75 Shift operators
Operator

Alias

Usage

Explanation


:ROL: 
A:ROL:B 
Rotate A left by B bits


:ROR: 
A:ROR:B 
Rotate A right by B bits


:SHL: 
<< 
A:SHL:B 
Shift A left by B bits

:SHR: 
>> 
A:SHR:B 
Shift A right by B bits

SHR
is a logical shift and does not propagate
the sign bit.