This is the mail archive of the gcc-patches@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: [m68k] Adjust costs for mul/div instructions on ColdFire cores


On Thursday 21 August 2003 07:18, Richard Henderson wrote:

> On Thu, Aug 21, 2003 at 05:57:26AM +0200, Bernardo Innocenti wrote:
> > +#define MULW_COST (TARGET_68060 ? 2 : TARGET_68040 ? 3 : TARGET_68020 ?
> > 8 : \ +			TARGET_CFV3 ? 2 : 5)
>
> You might consider moving to a table based system...

I'd like too, but the m68k back-end has far too many TARGET flags to have
a managable table indexed by targets. Using structures is not an option.

I will redo the patch using tables if someone comes up with an idea to
make it short and simple.

> > +        *total = COSTS_N_INSNS(18);
>
> 				^^^
> Careful with whitespace.

Will fix this before committing.

Thanks!

-- 
  // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/

Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html



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