This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

BUG in operator precedence in as


Hi

There is bug in operator precedence in as in newer binutils (2.9.5.0.46
and 2.10.1.0.2), 2.9.1 is correct but has other bugs. '|' and '+' have the
same precedence. 

Mikulas

$ as
movl $1*2|3, %eax
$ objdump --disassemble a.out

a.out:     file format elf32-i386

Disassembly of section .text:

00000000 <.text>:
   0:   b8 03 00 00 00          mov    $0x3,%eax
$ as
movl $3|1*2, %eax
$ objdump --disassemble a.out

a.out:     file format elf32-i386

Disassembly of section .text:

00000000 <.text>:
   0:   b8 06 00 00 00          mov    $0x6,%eax
$



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]