From: Roger Sayle Date: Wed, 30 Jun 2004 12:46:52 +0000 (+0000) Subject: rs6000.c (rs6000_rtx_costs): Handle subtractions identically to additions, always... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=521903292cec2da89e5804e420245a006affd240;p=gcc.git rs6000.c (rs6000_rtx_costs): Handle subtractions identically to additions, always COSTS_N_INSNS (1). * config/rs6000/rs6000.c (rs6000_rtx_costs) : Handle subtractions identically to additions, always COSTS_N_INSNS (1). From-SVN: r83906 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e18d36ff1a0..fdd36d9d232 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-06-30 Roger Sayle + + * config/rs6000/rs6000.c (rs6000_rtx_costs) : Handle + subtractions identically to additions, always COSTS_N_INSNS (1). + 2004-06-30 J"orn Rennecke * expmed.c (expand_smod_pow2): Fix sign of mask. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index f91e3f67814..3102e54569a 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -16169,6 +16169,10 @@ rs6000_rtx_costs (rtx x, int code, int outer_code ATTRIBUTE_UNUSED, : COSTS_N_INSNS (1)); return true; + case MINUS: + *total = COSTS_N_INSNS (1); + return true; + case AND: case IOR: case XOR: