This is the mail archive of the binutils@sources.redhat.com 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]

Re: gas: inconsistencies w/ immediates


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.


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