gas: inconsistencies w/ immediates
Alan Modra
alan@linuxcare.com.au
Mon Jul 31 08:47:00 GMT 2000
More information about the Binutils mailing list
Mon Jul 31 08:47:00 GMT 2000
- Previous message (by thread): gas: inconsistencies w/ immediates
- Next message (by thread): gas: inconsistencies w/ immediates
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message (by thread): gas: inconsistencies w/ immediates
- Next message (by thread): gas: inconsistencies w/ immediates
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list