This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

inline asm problem


Can anyone tell me how the at&t syntax is for this small intel asm?

short filt_cos[] = { 141, ... };

pmaddwd  mm1, [filt_cos + 8]

I've tried it this way:

__asm__ __volatile__ ("pmaddwd  8(%0), %%mm1" : : "m" (filt_cos));

but:
/tmp/cctukwBb.s: Assembler messages:
/tmp/cctukwBb.s:1753: Error: junk `(.LC13)' after expression

Then i tried this:

__asm__ __volatile__ ("pmaddwd  8 + %0(,1), %%mm1" : : "m" (filt_cos));

works, but give wrong result.

Is there an _one_liner_ solution?

Regards.

TWISTI


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