This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: problem in extended asm
- From: "Dave Korn" <dk at artimi dot com>
- To: "'Ankit Jain'" <ankitjain1580 at yahoo dot com>
- Cc: "'gcc'" <gcc at gcc dot gnu dot org>
- Date: Wed, 11 Aug 2004 14:42:03 +0100
- Subject: 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....