This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __builtin_prefetch() question
> Hi,
>
> On Dom 26 May 2002 11:30, Bryce McKinlay wrote:
> > Guillermo Ballester Valor wrote:
> > >My question is: does __builtin_prefetch() in GCC 3.1 actually insert any
> > >prefetch hint for pentium3 target? or it does nothing with it?
> > >
> > >I listed assembler outputs with -march=pentium3 (and some prefetch calls)
> > > and I can't see any prefetch code, and diffs show me no differences with
> > > __builtin_prefetch() calls and without it.
> >
> > Try -mcpu=pentium3
> >
>
> I've tried all combinations of '-mcpu=pentium3' and '-march=pentium3' without
> success. I also read in gcc info that -march=CPU-TYPE implies -mcpu=CPU-TYPE.
I've been told that -O2 is also needed at least for Sparc. THis is
probably bug, I will check. Otherwise -mcpu=pentium3 should be
definitly enought to get prefetch trought.
Honza
>
> Guillermo
>
> --
> Guillermo Ballester Valor
> gbv@oxixares.com
> Granada (Spain)
>