BUG in operator precedence in as

Mikulas Patocka mikulas@artax.karlin.mff.cuni.cz
Tue Nov 28 04:35:00 GMT 2000


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
$




More information about the Binutils mailing list