This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: problem in extended asm


> -----Original Message-----
> From: Ankit Jain 
> Sent: 11 August 2004 12:30

>  --- Dave Korn wrote: 
> > > -----Original Message-----
> > > From: gcc-owner  On Behalf Of Dave Korn
> > > Sent: 11 August 2004 10:03

> > > > > >>for(i=0;i<8;i++)
> > > > > >>{
> > > > > >>asm("movq i(%1),%%mm0 \n"
> > > > > >>    "movq %%mm0,(%0)
> > > > > >>    :"=r"(x)
> > > > > >>    :"r"(m));           //m is an array
> > > > > >>}
> > 
> > > 
> > >   OK then, is it because it writes to the output
> > before 
> > > consuming all the inputs?
> > 
> >   D'oh.  Not in that non-intel syntax it doesn't. 
> > Ignore that last post,
> > please.....
> > 

> hi
> 
> well ... try to understand again
> 
> for(i=0;i<8;i++)
> {
> asm("movq i(%1),%%mm0 \n"/my question lies in this
> line
>     "movq %%mm0,(%0)
>     :"=r"(x)         //x is a pointer to another array
>     :"r"(m));           //m is a pointer to array a
> }
> 
> whether is it possible if i can use i or not?because
> it gives error
> 
> thanks 
> 
> ankit


  Well, you already answered your own question.  It isn't possible for you
to use it because it gives an error.


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]