public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* inline asm problem
@ 2002-03-18  0:59 TWISTI
  2002-03-18  1:30 ` Ian Lance Taylor
  0 siblings, 1 reply; 11+ messages in thread
From: TWISTI @ 2002-03-18  0:59 UTC (permalink / raw)
  To: binutils

I've already posted this in `gcc@gcc.gnu.org'. But maybe this is the
_more_ correct list. Here it goes:

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




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-03-18 21:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-18  0:59 inline asm problem TWISTI
2002-03-18  1:30 ` Ian Lance Taylor
2002-03-18  4:32   ` Hans-Peter Nilsson
2002-03-18  9:38     ` TWISTI
2002-03-18  9:46       ` DJ Delorie
2002-03-18 10:13         ` TWISTI
2002-03-18 10:53           ` Ian Lance Taylor
     [not found]           ` <200203181816.g2IIGnO07978@envy.delorie.com>
2002-03-18 11:04             ` TWISTI
2002-03-18 11:10               ` DJ Delorie
2002-03-18 13:19                 ` TWISTI
2002-03-18 13:21                   ` DJ Delorie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).