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