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: [csl-arm] ARM mla costs.


On Friday 29 September 2006 20:36, Paul Brook wrote:
> The arm rtx_cost routine doesn't know about multiply-add instructions. This
> means they get given the same cost as an add with memory operands.
>
> On cores with a single-cycle multiply this is greater than the combined
> cost of separate mul and add insns.
>
> Patch below fixes this.
> Tested with cross to arm-none-eabi.
> Applied to branches/csl/sourcerygxx-4_1.
> I'll apply to mainline once it reopens.

It turns out this was a regression, so I've applied to mainline and 4.1.

> 2006-09-29  Paul Brook  <paul@codesourcery.com>
>
> 	* config/arm/arm.c (arm_rtx_costs_1): Handle multiply-accumulate.


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