This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ill effect of <register>+<constant>
"Dave Korn" <dave.korn@artimi.com> writes:
> On 21 September 2007 16:13, Andreas Schwab wrote:
>
>> "Jan Beulich" <jbeulich@novell.com> writes:
>>
>>> To me, adding a constant to a register and getting a different register is
>>> all but a useful feature (maybe it is in e.g. PPC semantics where registers
>>> can be represented by plain numbers). But beyond that,
>>
>> That's the main feature. Registers _are_ plain numbers.
>
> I can see where that's useful on pcc, but on x86, the registers aren't
> equipotent; it makes no sense at all to me.
But it does no harm either. So why cripple the assembler? If you want
text replacement then use a text macro.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."