4.9 Operators

ARM® syntax assembly and GNU syntax assembly provide different methods for specifying some operators.

The following table shows how to translate ARM syntax operators to GNU syntax operators.

Table 4-1 Operator translation

ARM syntax operator GNU syntax operator
:OR: |
:EOR: ^
:AND: &
:NOT: ~
:SHL: <<
:SHR: >>
:LOR: ||
:LAND: &&
:ROL: No GNU equivalent
:ROR: No GNU equivalent
Related information
GNU Binutils - Using as: Infix Operators
armasm User Guide: Unary operators
armasm User Guide: Shift operators
armasm User Guide: Addition, subtraction, and logical operators
Non-ConfidentialPDF file icon PDF versionARM DUI0742F
Copyright © 2014-2016 ARM. All rights reserved.