h8300.c (h8300_and_costs): Return the number of assembly instructions needed.
authorKazu Hirata <kazu@cs.umass.edu>
Sun, 9 Mar 2003 03:40:45 +0000 (03:40 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 9 Mar 2003 03:40:45 +0000 (03:40 +0000)
* config/h8300/h8300.c (h8300_and_costs): Return the number of
assembly instructions needed.
(h8300_shift_costs): Likewise.

From-SVN: r64020

gcc/ChangeLog
gcc/config/h8300/h8300.c

index 59e6a6f600af1f99c2e8ab7880192715a285bfb5..f4941cf541b6fb63e5c701cac61517a75f54e292 100644 (file)
@@ -1,3 +1,9 @@
+2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.c (h8300_and_costs): Return the number of
+       assembly instructions needed.
+       (h8300_shift_costs): Likewise.
+
 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
 
        * config/cris/aout.h (ENDFILE_SPEC): Undef.
index b39a7020aca0251e155fa989fa479fb50f6f720a..c50b5ad85ad7e7c995fd099418f099346f4867b2 100644 (file)
@@ -1158,7 +1158,7 @@ h8300_and_costs (x)
   operands[1] = NULL;
   operands[2] = XEXP (x, 1);
   operands[3] = x;
-  return compute_logical_op_length (GET_MODE (x), operands);
+  return compute_logical_op_length (GET_MODE (x), operands) / 2;
 }
 
 static int
@@ -1176,7 +1176,7 @@ h8300_shift_costs (x)
   operands[1] = NULL;
   operands[2] = XEXP (x, 1);
   operands[3] = x;
-  return compute_a_shift_length (NULL, operands);
+  return compute_a_shift_length (NULL, operands) / 2;
 }
 
 static bool