| 1 |
282 |
jeremybenn |
/* Definitions of target machine for GNU compiler. Sun 68000/68020 version.
|
| 2 |
|
|
Copyright (C) 2000, 2002, 2004, 2005, 2006, 2007, 2008
|
| 3 |
|
|
Free Software Foundation, Inc.
|
| 4 |
|
|
|
| 5 |
|
|
This file is part of GCC.
|
| 6 |
|
|
|
| 7 |
|
|
GCC is free software; you can redistribute it and/or modify
|
| 8 |
|
|
it under the terms of the GNU General Public License as published by
|
| 9 |
|
|
the Free Software Foundation; either version 3, or (at your option)
|
| 10 |
|
|
any later version.
|
| 11 |
|
|
|
| 12 |
|
|
GCC is distributed in the hope that it will be useful,
|
| 13 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 14 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 15 |
|
|
GNU General Public License for more details.
|
| 16 |
|
|
|
| 17 |
|
|
You should have received a copy of the GNU General Public License
|
| 18 |
|
|
along with GCC; see the file COPYING3. If not see
|
| 19 |
|
|
<http://www.gnu.org/licenses/>. */
|
| 20 |
|
|
|
| 21 |
|
|
/* Define functions defined in aux-output.c and used in templates. */
|
| 22 |
|
|
|
| 23 |
|
|
#ifdef RTX_CODE
|
| 24 |
|
|
extern enum m68k_function_kind m68k_get_function_kind (tree);
|
| 25 |
|
|
extern HOST_WIDE_INT m68k_initial_elimination_offset (int from, int to);
|
| 26 |
|
|
|
| 27 |
|
|
extern void split_di (rtx[], int, rtx[], rtx[]);
|
| 28 |
|
|
|
| 29 |
|
|
extern bool valid_mov3q_const (HOST_WIDE_INT);
|
| 30 |
|
|
extern const char *output_move_simode (rtx *);
|
| 31 |
|
|
extern const char *output_move_himode (rtx *);
|
| 32 |
|
|
extern const char *output_move_qimode (rtx *);
|
| 33 |
|
|
extern const char *output_move_stricthi (rtx *);
|
| 34 |
|
|
extern const char *output_move_strictqi (rtx *);
|
| 35 |
|
|
extern const char *output_move_double (rtx *);
|
| 36 |
|
|
extern const char *output_move_const_single (rtx *);
|
| 37 |
|
|
extern const char *output_move_const_double (rtx *);
|
| 38 |
|
|
extern const char *output_btst (rtx *, rtx, rtx, rtx, int);
|
| 39 |
|
|
extern const char *output_scc_di (rtx, rtx, rtx, rtx);
|
| 40 |
|
|
extern const char *output_addsi3 (rtx *);
|
| 41 |
|
|
extern const char *output_andsi3 (rtx *);
|
| 42 |
|
|
extern const char *output_iorsi3 (rtx *);
|
| 43 |
|
|
extern const char *output_xorsi3 (rtx *);
|
| 44 |
|
|
extern const char *output_call (rtx);
|
| 45 |
|
|
extern const char *output_sibcall (rtx);
|
| 46 |
|
|
extern void output_dbcc_and_branch (rtx *);
|
| 47 |
|
|
extern int floating_exact_log2 (rtx);
|
| 48 |
|
|
extern bool strict_low_part_peephole_ok (enum machine_mode mode, rtx first_insn, rtx target);
|
| 49 |
|
|
|
| 50 |
|
|
/* Functions from m68k.c used in macros. */
|
| 51 |
|
|
extern int standard_68881_constant_p (rtx);
|
| 52 |
|
|
extern void print_operand_address (FILE *, rtx);
|
| 53 |
|
|
extern void print_operand (FILE *, rtx, int);
|
| 54 |
|
|
extern bool m68k_output_addr_const_extra (FILE *, rtx);
|
| 55 |
|
|
extern void notice_update_cc (rtx, rtx);
|
| 56 |
|
|
extern bool m68k_legitimate_base_reg_p (rtx, bool);
|
| 57 |
|
|
extern bool m68k_legitimate_index_reg_p (rtx, bool);
|
| 58 |
|
|
extern bool m68k_illegitimate_symbolic_constant_p (rtx);
|
| 59 |
|
|
extern bool m68k_matches_q_p (rtx);
|
| 60 |
|
|
extern bool m68k_matches_u_p (rtx);
|
| 61 |
|
|
extern rtx legitimize_pic_address (rtx, enum machine_mode, rtx);
|
| 62 |
|
|
extern rtx m68k_legitimize_tls_address (rtx);
|
| 63 |
|
|
extern bool m68k_tls_reference_p (rtx, bool);
|
| 64 |
|
|
extern int valid_dbcc_comparison_p_2 (rtx, enum machine_mode);
|
| 65 |
|
|
extern rtx m68k_libcall_value (enum machine_mode);
|
| 66 |
|
|
extern rtx m68k_function_value (const_tree, const_tree);
|
| 67 |
|
|
extern int emit_move_sequence (rtx *, enum machine_mode, rtx);
|
| 68 |
|
|
extern bool m68k_movem_pattern_p (rtx, rtx, HOST_WIDE_INT, bool);
|
| 69 |
|
|
extern const char *m68k_output_movem (rtx *, rtx, HOST_WIDE_INT, bool);
|
| 70 |
|
|
extern void m68k_final_prescan_insn (rtx, rtx *, int);
|
| 71 |
|
|
|
| 72 |
|
|
/* Functions from m68k.c used in constraints.md. */
|
| 73 |
|
|
extern rtx m68k_unwrap_symbol (rtx, bool);
|
| 74 |
|
|
|
| 75 |
|
|
/* Functions from m68k.c used in genattrtab. */
|
| 76 |
|
|
#ifdef HAVE_ATTR_cpu
|
| 77 |
|
|
extern enum attr_cpu m68k_sched_cpu;
|
| 78 |
|
|
extern enum attr_mac m68k_sched_mac;
|
| 79 |
|
|
|
| 80 |
|
|
extern enum attr_opx_type m68k_sched_attr_opx_type (rtx, int);
|
| 81 |
|
|
extern enum attr_opy_type m68k_sched_attr_opy_type (rtx, int);
|
| 82 |
|
|
extern enum attr_size m68k_sched_attr_size (rtx);
|
| 83 |
|
|
extern enum attr_op_mem m68k_sched_attr_op_mem (rtx);
|
| 84 |
|
|
extern enum attr_type m68k_sched_branch_type (rtx);
|
| 85 |
|
|
#endif /* HAVE_ATTR_cpu */
|
| 86 |
|
|
|
| 87 |
|
|
#endif /* RTX_CODE */
|
| 88 |
|
|
|
| 89 |
|
|
extern bool m68k_regno_mode_ok (int, enum machine_mode);
|
| 90 |
|
|
extern enum reg_class m68k_secondary_reload_class (enum reg_class,
|
| 91 |
|
|
enum machine_mode, rtx);
|
| 92 |
|
|
extern enum reg_class m68k_preferred_reload_class (rtx, enum reg_class);
|
| 93 |
|
|
extern int flags_in_68881 (void);
|
| 94 |
|
|
extern void m68k_expand_prologue (void);
|
| 95 |
|
|
extern bool m68k_use_return_insn (void);
|
| 96 |
|
|
extern void m68k_expand_epilogue (bool);
|
| 97 |
|
|
extern void override_options (void);
|
| 98 |
|
|
extern const char *m68k_cpp_cpu_ident (const char *);
|
| 99 |
|
|
extern const char *m68k_cpp_cpu_family (const char *);
|
| 100 |
|
|
extern void init_68881_table (void);
|
| 101 |
|
|
extern rtx m68k_legitimize_call_address (rtx);
|
| 102 |
|
|
extern rtx m68k_legitimize_sibcall_address (rtx);
|
| 103 |
|
|
extern int m68k_hard_regno_rename_ok(unsigned int, unsigned int);
|