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: inline asm problem



> > 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


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