This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: GAS bug when dividing constants
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Bogdan <love4boobies at yahoo dot com>
- Cc: binutils at sourceware dot org
- Date: Sun, 29 Mar 2009 18:20:23 -0700
- Subject: Re: GAS bug when dividing constants
- References: <257408.39697.qm@web37108.mail.mud.yahoo.com>
On Sun, Mar 29, 2009 at 6:07 PM, Bogdan <love4boobies@yahoo.com> wrote:
>
> This works
>
> MOV 2 + 2, %AX
>
> while this fails
>
> MOV 2 / 2, %AX
>
> Probably an easy-to-fix preprocessor bug.
>
> Cheers.
Works for me:
bash-3.2$ cat x.s
MOV 2 / 2, %AX
bash-3.2$ gcc -c x.s
bash-3.2$ objdump -dw x.o
x.o: file format elf64-x86-64
Disassembly of section .text:
0000000000000000 <.text>:
0: 66 8b 04 25 01 00 00 00 mov 0x1,%ax
bash-3.2$
--
H.J.