Re: Assembler Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Please mention the versions of GCC , binutils that you might be using so that someone can verify the problem .Further please provide either a preprocessed output or a proper testcase since no one can test your case otherwise.





Ankit Jain wrote:
 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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux