/* Definitions of target machine for GNU compiler.
- Copyright (C) 1994, 1995 Free Software Foundation, Inc.
- Contributed by O.M.Kellogg, DASA (kellogg@space.otn.dasa.de)
+ Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
+ Contributed by O.M.Kellogg, DASA (oliver.kellogg@space.otn.dasa.de)
This file is part of GNU CC.
registers listed in CALL_USED_REGISTERS, keeping the others
available for storage of persistent values. */
-#define REG_ALLOC_ORDER \
+/* #define REG_ALLOC_ORDER \
{ 2, 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }
+ */
/* Return number of consecutive hard regs needed starting at reg REGNO
to hold something of mode MODE.
/* Register in which static-chain is passed to a function. */
#define STATIC_CHAIN_REGNUM 13
+/* Place in which caller passes the structure value address.
+ 0 means push the value on the stack like an argument.
+ #define STRUCT_VALUE 0
+*/
+
/* Register in which address to store a structure value
- is passed to a function. */
+ arrives in the function.
+ #define STRUCT_VALUE_INCOMING 0
+*/
+
+/* Register in which address to store a structure value
+ is passed to a function. */
#define STRUCT_VALUE_REGNUM 12
/* Define this to be 1 if all structure return values must be in memory. */
/* Similar, but for floating constants, and defining letter 'G'.
Here VALUE is the CONST_DOUBLE rtx itself. */
-#define CONST_DOUBLE_OK_FOR_LETTER_P(VALUE, C) 0
+#define CONST_DOUBLE_OK_FOR_LETTER_P(VALUE, C) \
+ ((C) == 'G' ? ((VALUE) == CONST0_RTX (HFmode) \
+ || (VALUE) == CONST0_RTX (TQFmode)) : 0)
/* Optional extra constraints for this machine.
functions that have frame pointers.
No definition is equivalent to always zero. */
-#define EXIT_IGNORE_STACK 1
+#define EXIT_IGNORE_STACK 0
/* This macro generates the assembly code for function exit,
on machines that need it. If FUNCTION_EPILOGUE is not defined
#ifdef REG_OK_STRICT
/* Nonzero if X is a hard reg that can be used as an index. */
-#define REG_OK_FOR_INDEX_P(X) (REGNO (X) >= 12 && REGNO (X) <= 15)
+#define REG_OK_FOR_INDEX_P(X) REGNO_OK_FOR_INDEX_P(REGNO(X))
/* Nonzero if X is a hard reg that can be used as a base reg. */
-#define REG_OK_FOR_BASE_P(X) (REGNO (X) > 0 && REGNO (X) <= 15)
+#define REG_OK_FOR_BASE_P(X) REGNO_OK_FOR_BASE_P(REGNO(X))
#else
/* Max number of bytes we can move from memory to memory
in one reasonably fast instruction. */
-/* (was: "1750: not counting the MOV instruction") */
-#define MOVE_MAX 16
+#define MOVE_MAX 65536
+
+/* MOVE_RATIO is the number of move instructions that is better than a
+ block move. */
+#define MOVE_RATIO 4
/* Define this if zero-extension is slow (more than one real instruction). */
/* #define SLOW_ZERO_EXTEND */