This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: inline asm problem
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: TWISTI <twisti at fusion dot at>
- Cc: <binutils at sources dot redhat dot com>
- Date: Mon, 18 Mar 2002 07:31:59 -0500 (EST)
- Subject: Re: inline asm problem
On 18 Mar 2002, Ian Lance Taylor wrote:
> why not just do this:
> __asm__ __volatile__ ("pmaddwd %0, %%mm1" : : "m" (filt_cos + 8));
But don't forget to cast to char * so you're not surprised by
address arithmetic on the short-sized items (often two bytes):
__asm__ __volatile__ ("pmaddwd %0, %%mm1" : : "m" ((char *) filt_cos + 8));
or just say filt_cos + 4.
brgds, H-P