This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: inline asm problem
> Let's say i would like to address it like this: filt_cos + %eax * 8
>
> Can i do this without
>
> "movl %0, %%ebx" : : "m" (filt_cos)
> "movl (%ebx, %eax, 8), %mm1"
>
> Obviously
>
> "movl (%0, %eax, 8), %%mm1" : : "m" (filt_cos)
>
> does not work. Maybe another oneliner?
Why not this?
asm("mov %0, %%mm1" : : "m" (filt_cos[n]));
You don't have to be *that* clever, as gcc *does* know how to handle
things like this on its own.