aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-03-09 03:40:45 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2003-03-09 03:40:45 +0000
commit4f4ebda3297c76529829f827ac7b8d17b74d044c (patch)
treef74cbdfb95949bcd86c8b29e8c68a4dde7659d02
parent02af0d9bc7a952862c544921446568b9ccf1dd10 (diff)
downloadgcc-4f4ebda3297c76529829f827ac7b8d17b74d044c.zip
gcc-4f4ebda3297c76529829f827ac7b8d17b74d044c.tar.gz
gcc-4f4ebda3297c76529829f827ac7b8d17b74d044c.tar.bz2
h8300.c (h8300_and_costs): Return the number of assembly instructions needed.
* config/h8300/h8300.c (h8300_and_costs): Return the number of assembly instructions needed. (h8300_shift_costs): Likewise. From-SVN: r64020
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/h8300/h8300.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 59e6a6f..f4941cf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c
index b39a702..c50b5ad 100644
--- a/gcc/config/h8300/h8300.c
+++ b/gcc/config/h8300/h8300.c
@@ -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