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]
Other format: [Raw text]

Re: x86 leal quirk


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~


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