[PATCH] Index add_cost/neg_cost by machine mode in expmed.c

Roger Sayle roger@eyesopen.com
Sun Jun 6 04:52:00 GMT 2004


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
--



More information about the Gcc-patches mailing list