From 521903292cec2da89e5804e420245a006affd240 Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Wed, 30 Jun 2004 12:46:52 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.c | 4 ++++ 2 files changed, 9 insertions(+) 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: -- 2.30.2