diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-30 12:46:52 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-30 12:46:52 +0000 |
commit | b5c4370d794ee06425c8e9280fec38631c4c30a2 (patch) | |
tree | feb19d5c4198e9734f5ec8d3694ba3879f4fdf66 /gcc | |
parent | 747b1ec1eda089a12b012efdd4c74c0e9e2e052a (diff) | |
download | gcc-b5c4370d794ee06425c8e9280fec38631c4c30a2.tar.gz |
* config/rs6000/rs6000.c (rs6000_rtx_costs) <MINUS_EXPR>: Handle
subtractions identically to additions, always COSTS_N_INSNS (1).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83906 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 4 |
2 files changed, 9 insertions, 0 deletions
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 <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 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: |