A bug in IA32 assembler

H . J . Lu hjl@lucon.org
Thu Jun 28 19:03:00 GMT 2001


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.



More information about the Binutils mailing list