Assembler Reference

Table 3-2 Operator precedence in armasm

armasm precedence

equivalent C operators

 

 

+ - :AND: :OR: :EOR:

+ - &

 

 

= > >= < <= /= <>

== > >= < <= !=

 

 

:LAND: :LOR: :LEOR:

&&

 

 

Table 3-3 Operator precedence in C

C precedence

unary operators

* / %

+ - (as binary operators)

<< >>

< <= > >=

== !=

&

^

&&

The highest precedence operators are at the top of the list.

The highest precedence operators are evaluated first.

Operators of equal precedence are evaluated from left to right.

ARM DUI 0068B

Copyright © 2000, 2001 ARM Limited. All rights reserved.

3-25

Page 103
Image 103
ARM VERSION 1.2 manual Operator precedence in C Precedence