problem in extended asm
Dave Korn
dk@artimi.com
Wed Aug 11 14:02:00 GMT 2004
> -----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....
More information about the Gcc
mailing list