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]

Expression evaluation bug


Hi

Assembler miscompiles this code:

$ as
movl (, %ecx, (2+2)), %eax
$ objdump --disassemble

a.out:     file format elf32-i386

Disassembly of section .text:

00000000 <.text>:
   0:   8b 04 0d 00 00 00 00    mov    0x0(,%ecx,1),%eax
$

Mikulas


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