inline asm problem
DJ Delorie
dj@delorie.com
Mon Mar 18 09:46:00 GMT 2002
> 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.
More information about the Binutils
mailing list