OSDN Git Service

* config/rs6000/rs6000.c (rs6000_rtx_costs) <MINUS_EXPR>: Handle
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Jun 2004 12:46:52 +0000 (12:46 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Jun 2004 12:46:52 +0000 (12:46 +0000)
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

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index e18d36f..fdd36d9 100644 (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.
index f91e3f6..3102e54 100644 (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: