This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
problem in extended asm
- From: Ankit Jain <ankitjain1580 at yahoo dot com>
- To: gcc <gcc at gcc dot gnu dot org>, gcc <gcc-help at gcc dot gnu dot org>
- Date: Mon, 9 Aug 2004 18:10:20 +0100 (BST)
- Subject: problem in extended asm
hi
a simple question: why the followinf instruction
dosent work in gcc
for(i=0;i<8;i++)
{
asm("movq i(%1),%%mm0 \n"
"movq %%mm0,(%0)
:"=r"(x)
:"r"(m)); //m is an array
}
for(i=0;i<8;i++)
printf("%d",x[i])
thanks
ankit jain
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html