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
This commit is contained in:
Roger Sayle 2004-06-30 12:46:52 +00:00 committed by Roger Sayle
parent 4c6fd544cc
commit 521903292c
2 changed files with 9 additions and 0 deletions

View File

@ -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.

View File

@ -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: