x86 leal quirk

Richard Henderson rth@redhat.com
Mon Sep 23 21:01:00 GMT 2002


On Mon, Sep 23, 2002 at 04:27:35PM -0700, Ulrich Drepper wrote:
> Makes little sense, does it?  leal implies %ds.  Why shouldn't a %ds
> override be allowed?

Because leal doesn't imply _any_ segment.  Only true memory
references involve a segment.

leal just reuses part of the address generation logic to do
a couple of adds and a shift.


r~



More information about the Binutils mailing list