assembler error

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

 



      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

[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