Re: [RS6000] rs6000_rtx_costs for PLUS/MINUS constant

2020-09-15 Thread Segher Boessenkool
On Tue, Sep 15, 2020 at 10:49:40AM +0930, Alan Modra wrote: > These functions do behave a little differently for SImode, so the > mode should be passed. > > * config/rs6000/rs6000.c (rs6000_rtx_costs): Pass mode to > reg_or_add_cint_operand and reg_or_sub_cint_operand. Okay for trunk.

[RS6000] rs6000_rtx_costs for PLUS/MINUS constant

2020-09-14 Thread Alan Modra via Gcc-patches
These functions do behave a little differently for SImode, so the mode should be passed. * config/rs6000/rs6000.c (rs6000_rtx_costs): Pass mode to reg_or_add_cint_operand and reg_or_sub_cint_operand. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 6fc86f