This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
BUG in operator precedence in as
- To: binutils at sources dot redhat dot com
- Subject: BUG in operator precedence in as
- From: Mikulas Patocka <mikulas at artax dot karlin dot mff dot cuni dot cz>
- Date: Tue, 28 Nov 2000 13:35:27 +0100 (CET)
- cc: bug-gnu-utils at gnu dot org
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
$