Expression evaluation bug

Mikulas Patocka mikulas@artax.karlin.mff.cuni.cz
Sat Mar 24 12:06:00 GMT 2001


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



More information about the Binutils mailing list