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]

Re: A bug in IA32 assembler


On Thu, Jun 28, 2001 at 06:55:26PM -0700, Richard Henderson wrote:
> On Thu, Jun 28, 2001 at 06:11:54PM -0700, H . J . Lu wrote:
> >         asm("movaps (%0),%%xmm0"                                //SSE
> >         :
> >         :"g"(A));
> 
> This is broken code.  You want
> 
> 	asm("movaps %0,%%xmm0" : : "mr"(A));
> 
> The movaps does not allow immediates, so the constraint 
> should not.

Have you tried it on the testcase I enclosed? It doesn't work for me.

> 
> No.  '$' is the immediate prefix operator iff it is the
> first character of the operand.

I see.


H.J.


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