aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2004-06-30 12:46:52 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2004-06-30 12:46:52 +0000
commit521903292cec2da89e5804e420245a006affd240 (patch)
treefeb19d5c4198e9734f5ec8d3694ba3879f4fdf66 /gcc
parent4c6fd544cc2702f5ce92a7e12b8d287f48b140ad (diff)
downloadgcc-521903292cec2da89e5804e420245a006affd240.zip
gcc-521903292cec2da89e5804e420245a006affd240.tar.gz
gcc-521903292cec2da89e5804e420245a006affd240.tar.bz2
rs6000.c (rs6000_rtx_costs): Handle subtractions identically to additions, always COSTS_N_INSNS (1).
* config/rs6000/rs6000.c (rs6000_rtx_costs) <MINUS_EXPR>: Handle subtractions identically to additions, always COSTS_N_INSNS (1). From-SVN: r83906
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e18d36f..fdd36d9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-30 Roger Sayle <roger@eyesopen.com>
+
+ * config/rs6000/rs6000.c (rs6000_rtx_costs) <MINUS_EXPR>: Handle
+ subtractions identically to additions, always COSTS_N_INSNS (1).
+
2004-06-30 J"orn Rennecke <joern.rennecke@superh.com>
* expmed.c (expand_smod_pow2): Fix sign of mask.
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index f91e3f6..3102e54 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: