inline asm problem
DJ Delorie
dj@delorie.com
Mon Mar 18 11:10:00 GMT 2002
> > Have you tried using &filt_cos instead of just filt_cos? You'd need
> > an "i" constraint.
>
> Like this: "pmaddwd (%0, %%eax, 8), %%mm3" : : "i" (&cosin64)?
> Results in: pmaddwd ($cosin64, %eax, 8), %mm3
> /tmp/ccNuWzdA.s:1827: Error: missing ')'
> /tmp/ccNuWzdA.s:1827: Error: junk `,%eax,8)' after expression
This seems to work:
long long filt_cos[100];
int foo(int n)
{
asm("mov %0(,%%eax,8), %%mm1" : : "m" (filt_cos[0]));
}
mov filt_cos(,%eax,8), %mm1
More information about the Binutils
mailing list