------- Additional Comments From ianw at gelato dot unsw dot edu dot au
2005-08-05 02:17 -------
Subject: Re: Invalid %sil register chosen when dereferenced pointer used in
inline asm with -O0
On Fri, Aug 05, 2005 at 01:35:51AM -0000, pinskia at physics dot uc dot edu
wrote:
> On Aug 4, 2005, at 8:32 PM, ianw at gelato dot unsw dot edu dot au
> wrote:
>
> > /* this one doesn't */
> > __asm__ __volatile__("xchgb %0, %1"
> > : "=r"(old), "=m"(*newp)
> > : "0"(0xff), "m"(*newp) : "memory");
>
> This is not a bug.
>
> r is selecting %sil which is a valid register for x86_64.
Sorry if I'm missing something, I don't work with x86-64 much, but
isn't it a wrong to consider that register when I'm building for i486?
-i
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23242