summaryrefslogtreecommitdiff
path: root/gcc/config/m68k
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-01-14 01:28:45 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-01-14 01:28:45 +0000
commitf4b7ea313b648fe0716148ee3570d93686194981 (patch)
tree28ebab8b4e0821421564afc65eef6ba154199c43 /gcc/config/m68k
parent1286b2d479d2bf1b56ae1c20a31ab43925fd6525 (diff)
downloadgcc-f4b7ea313b648fe0716148ee3570d93686194981.tar.gz
(CONST_COSTS): Call const_int_cost.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8751 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m68k')
-rw-r--r--gcc/config/m68k/m68k.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/config/m68k/m68k.h b/gcc/config/m68k/m68k.h
index 28a8ac3f23a..b68aa60c47e 100644
--- a/gcc/config/m68k/m68k.h
+++ b/gcc/config/m68k/m68k.h
@@ -1,5 +1,5 @@
/* Definitions of target machine for GNU compiler. Sun 68000/68020 version.
- Copyright (C) 1987, 1988, 1993, 1994 Free Software Foundation, Inc.
+ Copyright (C) 1987, 1988, 1993, 1994, 1995 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -1356,12 +1356,8 @@ __transfer_from_trampoline () \
case CONST_INT: \
/* Constant zero is super cheap due to clr instruction. */ \
if (RTX == const0_rtx) return 0; \
- /* Constants between -128 and 127 are cheap due to moveq */ \
- if (INTVAL (RTX) >= -128 && INTVAL (RTX) <= 127) return 1; \
- /* Constants between -256 and 255 are easily generated */ \
- /* by use of moveq and not.b */ \
- if ((OUTER_CODE) == SET && INTVAL (RTX) >= -256 \
- && INTVAL (RTX) < 256) return 2; \
+ /* if ((OUTER_CODE) == SET) */ \
+ return const_int_cost(RTX); \
case CONST: \
case LABEL_REF: \
case SYMBOL_REF: \
@@ -1947,6 +1943,7 @@ do { long l; \
/* Define functions defined in aux-output.c and used in templates. */
+extern char *output_move_const_into_data_reg ();
extern char *output_move_double ();
extern char *output_move_const_single ();
extern char *output_move_const_double ();