This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: GAS bug when dividing constants


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.


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