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: Thu, 19 Aug 2004 08:34:19 +0100 (BST)
- Subject: assembler error
1 #include<inttypes.h>
2 int main()
3 {
4 uint8_t
a[32]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,
28,29,30,31,32},i=0,b[32],j=0;
5 for(i=0;i<32;i=i+8)
6 {
7 asm("movq (%1), %%mm0 \n\t"
8 "movq %%mm0, (%0) \n\t"
9 :"=r"(b[i])
10 :"r"(a[i])
11 :"%mm0"
12 );
13 while(j<32)
14 {printf("%d ",b[j]);j++;}
15 }
16 return 0;
17 }
this gives a assembler error?
/tmp/ccO1Jllb.s: Assembler messages:
/tmp/ccO1Jllb.s:68: Error: `(%al)' is not a valid 32
bit base/index expression
/tmp/ccO1Jllb.s:69: Error: `(%al)' is not a valid 32
bit base/index expression
WHY?
ankit jain
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html