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: x86 inc/dec on core2


On Sat, Apr 07, 2007 at 11:29:46AM +0200, Uros Bizjak wrote:
> Hello!
> 
> >> I was wondering, if:
> >> 
> >>   /* X86_TUNE_USE_INCDEC */
> >>   ~(m_PENT4 | m_NOCONA | m_CORE2 | m_GENERIC),
> >> 
> >> is correct.  Should it be:
> >> 
> >>   /* X86_TUNE_USE_INCDEC */
> >>   ~(m_PENT4 | m_NOCONA | m_GENERIC),
> >> 
> >> ?
> >
> >inc/dec has the same performance as add/sub on Core 2 Duo. But
> >inc/dec is shorter.
> >  
> 
> What about partial flag register dependency of inc/dec?

There is no partial flag register dependency on inc/dec.


H.J.


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