1 /* Definitions of target machine for GNU compiler. Sun 68000/68020 version.
2 Copyright (C) 2000-2013 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3, or (at your option)
11 GCC is distributed in the hope that it will be useful,
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.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 /* Define functions defined in aux-output.c and used in templates. */
23 extern enum m68k_function_kind
m68k_get_function_kind (tree
);
24 extern HOST_WIDE_INT
m68k_initial_elimination_offset (int from
, int to
);
26 extern void split_di (rtx
[], int, rtx
[], rtx
[]);
28 extern bool valid_mov3q_const (HOST_WIDE_INT
);
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
*);
37 extern const char *output_btst (rtx
*, rtx
, rtx
, rtx
, int);
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
*);
43 extern const char *output_call (rtx
);
44 extern const char *output_sibcall (rtx
);
45 extern void output_dbcc_and_branch (rtx
*);
46 extern int floating_exact_log2 (rtx
);
47 extern bool strict_low_part_peephole_ok (enum machine_mode mode
, rtx first_insn
, rtx target
);
49 /* Functions from m68k.c used in macros. */
50 extern int standard_68881_constant_p (rtx
);
51 extern void print_operand_address (FILE *, rtx
);
52 extern void print_operand (FILE *, rtx
, int);
53 extern void notice_update_cc (rtx
, rtx
);
54 extern bool m68k_legitimate_base_reg_p (rtx
, bool);
55 extern bool m68k_legitimate_index_reg_p (rtx
, bool);
56 extern bool m68k_illegitimate_symbolic_constant_p (rtx
);
57 extern bool m68k_legitimate_constant_p (enum machine_mode
, rtx
);
58 extern bool m68k_matches_q_p (rtx
);
59 extern bool m68k_matches_u_p (rtx
);
60 extern rtx
legitimize_pic_address (rtx
, enum machine_mode
, rtx
);
61 extern rtx
m68k_legitimize_tls_address (rtx
);
62 extern bool m68k_tls_reference_p (rtx
, bool);
63 extern int valid_dbcc_comparison_p_2 (rtx
, enum machine_mode
);
64 extern rtx
m68k_libcall_value (enum machine_mode
);
65 extern rtx
m68k_function_value (const_tree
, const_tree
);
66 extern int emit_move_sequence (rtx
*, enum machine_mode
, rtx
);
67 extern bool m68k_movem_pattern_p (rtx
, rtx
, HOST_WIDE_INT
, bool);
68 extern const char *m68k_output_movem (rtx
*, rtx
, HOST_WIDE_INT
, bool);
69 extern void m68k_final_prescan_insn (rtx
, rtx
*, int);
70 extern bool m68k_epilogue_uses (int);
72 /* Functions from m68k.c used in constraints.md. */
73 extern rtx
m68k_unwrap_symbol (rtx
, bool);
75 /* Functions from m68k.c used in genattrtab. */
77 extern enum attr_cpu m68k_sched_cpu
;
78 extern enum attr_mac m68k_sched_mac
;
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 #endif /* HAVE_ATTR_cpu */
88 extern bool m68k_regno_mode_ok (int, enum machine_mode
);
89 extern enum reg_class
m68k_secondary_reload_class (enum reg_class
,
90 enum machine_mode
, rtx
);
91 extern enum reg_class
m68k_preferred_reload_class (rtx
, enum reg_class
);
92 extern int flags_in_68881 (void);
93 extern void m68k_expand_prologue (void);
94 extern bool m68k_use_return_insn (void);
95 extern void m68k_expand_epilogue (bool);
96 extern const char *m68k_cpp_cpu_ident (const char *);
97 extern const char *m68k_cpp_cpu_family (const char *);
98 extern void init_68881_table (void);
99 extern rtx
m68k_legitimize_call_address (rtx
);
100 extern rtx
m68k_legitimize_sibcall_address (rtx
);
101 extern int m68k_hard_regno_rename_ok(unsigned int, unsigned int);