This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [m68k] Adjust costs for mul/div instructions on ColdFire cores
- From: Bernardo Innocenti <bernie at develer dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org,Paul Dale <pauli at moreton dot com dot au>,Peter Barada <peter at baradas dot org>,Peter dot Barada at motorola dot com
- Date: Thu, 21 Aug 2003 18:33:33 +0200
- Subject: Re: [m68k] Adjust costs for mul/div instructions on ColdFire cores
- Organization: Develer S.r.l.
- References: <200308210557.26412.bernie@develer.com> <20030821051816.GC21275@redhat.com>
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