GAS bug when dividing constants

H.J. Lu hjl.tools@gmail.com
Mon Mar 30 01:20:00 GMT 2009


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.



More information about the Binutils mailing list