This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Assembler Error
- From: Ankit Jain <ankitjain1580 at yahoo dot com>
- To: gcc <gcc-help at gcc dot gnu dot org>
- Date: Sun, 21 Nov 2004 06:52:01 +0000 (GMT)
- Subject: Assembler Error
uint64_t csae = 0; /* accummulators for difference */
58 uint64_t c1 = 0,*c;
59 uint8_t *ip, *rp; /* pointers to appropriate
rows */
asm("movq (%1), %%mm1 \n\t"
70 "psadbw (%2), %%mm1 \n\t"
71 "movq 8(%1), %%mm0 \n\t"
72 "psadbw 8(%2), %%mm0 \n\t"
73 "paddd %%mm0, %%mm1 \n\t" /* might
use paddd for 32-bit adding */
74 "movq 16(%1), %%mm0 \n\t"
75 "psadbw 16(%2), %%mm0 \n\t"
76 "paddd %%mm0, %%mm1 \n\t"
77 "movq 24(%1), %%mm0 \n\t"
78 "psadbw 24(%2), %%mm0 \n\t"
79 "paddd %%mm0, %%mm1 \n\t"
80 "movq %%mm1,%0 \n\t"
82 "emms \n\t"
83 : "=g" (c1)
84 : "r" (rp), "r" (ip)
85 );
Well due to this module i am getting the following
error
{standard input}: Assembler messages:
{standard input}:4126: Error: suffix or operands
invalid for `movq'
{standard input}:4494: Error: suffix or operands
invalid for `movq'
if somebody can help
thanks
ankit jain
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html