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: [PATCH] Index add_cost/neg_cost by machine mode in expmed.c


On Sat, 5 Jun 2004, Roger Sayle wrote:
>     for (mode = GET_CLASS_NARROWEST_MODE (MODE_INT);
>          mode != VOIDmode;
>          mode = GET_MODE_WIDER_MODE (mode))
>       {
>         reg = gen_rtx_REG (mode, 10000);
> +       add_cost[(int) mode] = rtx_cost (gen_rtx_PLUS (mode, reg, reg), SET);
> +       neg_cost[(int) mode] = rtx_cost (gen_rtx_NEG (word_mode, reg), SET);
                                                        ^^^^^^^^^
>         div_cost[(int) mode] = rtx_cost (gen_rtx_UDIV (mode, reg, reg), SET);
>         mul_cost[(int) mode] = rtx_cost (gen_rtx_MULT (mode, reg, reg), SET);


Doh!  A mindless typo.  I've fixed this in my local sources, and am
rebootstrapping/regression testing with the "obvious" correction.

Roger
--


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