This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: gas: inconsistencies w/ immediates
- To: Andreas Schwab <schwab at suse dot de>
- Subject: Re: gas: inconsistencies w/ immediates
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Tue, 1 Aug 2000 01:47:00 +1000 (EST)
- cc: Andrew Morton <andrewm at uow dot edu dot au>, binutils at sourceware dot cygnus dot com
On Mon, 31 Jul 2000, Andreas Schwab wrote:
> Andrew Morton <andrewm@uow.edu.au> writes:
>
> |> movl $1234/$10,%eax
> |>
> |> This fails because it is treating $10 as a label, not as a constant.
>
> Isn't `$' part of the insn syntax (immediate prefix)?
Yes. Strictly speaking, it's part of the operand.
> IMHO this should be written as:
>
> movl $1234/10,%eax
Correct again. Watch out for versions of x86 gas that define `/' to start
the beginning of a comment, with disastrous results for division
expressions.
--
Linuxcare. Support for the Revolution.