2 Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2007, 2008, 2009, 2010
3 Free Software Foundation, Inc.
4 Contributed by Red Hat, Inc.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
13 GCC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
22 /* CPU type. This must be identical to the cpu enumeration in frv.md. */
36 extern frv_cpu_t frv_cpu_type
; /* value of -mcpu= */
38 /* Define functions defined in frv.c */
39 extern void frv_expand_prologue (void);
40 extern void frv_expand_epilogue (bool);
41 extern frv_stack_t
*frv_stack_info (void);
42 extern void frv_debug_stack (frv_stack_t
*);
43 extern int frv_initial_elimination_offset (int, int);
46 extern int frv_legitimate_address_p_1 (enum machine_mode
, rtx
,
48 extern rtx
frv_find_base_term (rtx
);
51 extern void frv_init_cumulative_args (CUMULATIVE_ARGS
*, tree
,
54 extern bool frv_function_value_regno_p (const unsigned int);
55 #endif /* TREE_CODE */
57 extern int frv_expand_block_move (rtx
*);
58 extern int frv_expand_block_clear (rtx
*);
59 extern rtx
frv_dynamic_chain_address (rtx
);
60 extern rtx
frv_return_addr_rtx (int, rtx
);
61 extern rtx
frv_index_memory (rtx
, enum machine_mode
, int);
62 extern const char *frv_asm_output_opcode
63 (FILE *, const char *);
64 extern void frv_final_prescan_insn (rtx
, rtx
*, int);
65 extern void frv_emit_move (enum machine_mode
, rtx
, rtx
);
66 extern int frv_emit_movsi (rtx
, rtx
);
67 extern const char *output_move_single (rtx
*, rtx
);
68 extern const char *output_move_double (rtx
*, rtx
);
69 extern const char *output_condmove_single
71 extern int frv_emit_cond_branch (rtx
*);
72 extern int frv_emit_scc (rtx
*);
73 extern rtx
frv_split_scc (rtx
, rtx
, rtx
, rtx
, HOST_WIDE_INT
);
74 extern int frv_emit_cond_move (rtx
, rtx
, rtx
, rtx
);
75 extern rtx
frv_split_cond_move (rtx
*);
76 extern rtx
frv_split_minmax (rtx
*);
77 extern rtx
frv_split_abs (rtx
*);
78 extern void frv_split_double_load (rtx
, rtx
);
79 extern void frv_split_double_store (rtx
, rtx
);
81 extern void frv_ifcvt_init_extra_fields (ce_if_block_t
*);
82 extern void frv_ifcvt_modify_tests (ce_if_block_t
*, rtx
*, rtx
*);
83 extern void frv_ifcvt_modify_multiple_tests
84 (ce_if_block_t
*, basic_block
,
86 extern rtx
frv_ifcvt_modify_insn (ce_if_block_t
*, rtx
, rtx
);
87 extern void frv_ifcvt_modify_final (ce_if_block_t
*);
88 extern void frv_ifcvt_modify_cancel (ce_if_block_t
*);
90 extern enum reg_class frv_secondary_reload_class
92 enum machine_mode
, rtx
);
93 extern int frv_hard_regno_mode_ok (int, enum machine_mode
);
94 extern int frv_hard_regno_nregs (int, enum machine_mode
);
95 extern int frv_class_max_nregs (enum reg_class rclass
,
96 enum machine_mode mode
);
97 extern int frv_legitimate_constant_p (rtx
);
98 extern enum machine_mode
frv_select_cc_mode (enum rtx_code
, rtx
, rtx
);
101 extern int frv_trampoline_size (void);
102 extern int direct_return_p (void);
103 extern int frv_issue_rate (void);
104 extern int frv_acc_group (rtx
);
107 extern int frv_adjust_field_align (tree
, int);
111 extern int integer_register_operand (rtx
, enum machine_mode
);
112 extern int frv_load_operand (rtx
, enum machine_mode
);
113 extern int gpr_or_fpr_operand (rtx
, enum machine_mode
);
114 extern int gpr_no_subreg_operand (rtx
, enum machine_mode
);
115 extern int gpr_or_int6_operand (rtx
, enum machine_mode
);
116 extern int fpr_or_int6_operand (rtx
, enum machine_mode
);
117 extern int gpr_or_int_operand (rtx
, enum machine_mode
);
118 extern int gpr_or_int12_operand (rtx
, enum machine_mode
);
119 extern int gpr_fpr_or_int12_operand (rtx
, enum machine_mode
);
120 extern int gpr_or_int10_operand (rtx
, enum machine_mode
);
121 extern int move_source_operand (rtx
, enum machine_mode
);
122 extern int move_destination_operand (rtx
, enum machine_mode
);
123 extern int condexec_source_operand (rtx
, enum machine_mode
);
124 extern int condexec_dest_operand (rtx
, enum machine_mode
);
125 extern int lr_operand (rtx
, enum machine_mode
);
126 extern int gpr_or_memory_operand (rtx
, enum machine_mode
);
127 extern int fpr_or_memory_operand (rtx
, enum machine_mode
);
128 extern int reg_or_0_operand (rtx
, enum machine_mode
);
129 extern int fcc_operand (rtx
, enum machine_mode
);
130 extern int icc_operand (rtx
, enum machine_mode
);
131 extern int cc_operand (rtx
, enum machine_mode
);
132 extern int fcr_operand (rtx
, enum machine_mode
);
133 extern int icr_operand (rtx
, enum machine_mode
);
134 extern int cr_operand (rtx
, enum machine_mode
);
135 extern int call_operand (rtx
, enum machine_mode
);
136 extern int fpr_operand (rtx
, enum machine_mode
);
137 extern int even_reg_operand (rtx
, enum machine_mode
);
138 extern int odd_reg_operand (rtx
, enum machine_mode
);
139 extern int even_gpr_operand (rtx
, enum machine_mode
);
140 extern int odd_gpr_operand (rtx
, enum machine_mode
);
141 extern int quad_fpr_operand (rtx
, enum machine_mode
);
142 extern int even_fpr_operand (rtx
, enum machine_mode
);
143 extern int odd_fpr_operand (rtx
, enum machine_mode
);
144 extern int dbl_memory_one_insn_operand (rtx
, enum machine_mode
);
145 extern int dbl_memory_two_insn_operand (rtx
, enum machine_mode
);
146 extern int int12_operand (rtx
, enum machine_mode
);
147 extern int int6_operand (rtx
, enum machine_mode
);
148 extern int int5_operand (rtx
, enum machine_mode
);
149 extern int uint5_operand (rtx
, enum machine_mode
);
150 extern int uint4_operand (rtx
, enum machine_mode
);
151 extern int uint1_operand (rtx
, enum machine_mode
);
152 extern int int_2word_operand (rtx
, enum machine_mode
);
153 extern int pic_register_operand (rtx
, enum machine_mode
);
154 extern int pic_symbolic_operand (rtx
, enum machine_mode
);
155 extern int small_data_register_operand (rtx
, enum machine_mode
);
156 extern int small_data_symbolic_operand (rtx
, enum machine_mode
);
157 extern int upper_int16_operand (rtx
, enum machine_mode
);
158 extern int uint16_operand (rtx
, enum machine_mode
);
159 extern int symbolic_operand (rtx
, enum machine_mode
);
160 extern int relational_operator (rtx
, enum machine_mode
);
161 extern int signed_relational_operator (rtx
, enum machine_mode
);
162 extern int unsigned_relational_operator (rtx
, enum machine_mode
);
163 extern int float_relational_operator (rtx
, enum machine_mode
);
164 extern int ccr_eqne_operator (rtx
, enum machine_mode
);
165 extern int minmax_operator (rtx
, enum machine_mode
);
166 extern int condexec_si_binary_operator (rtx
, enum machine_mode
);
167 extern int condexec_si_media_operator (rtx
, enum machine_mode
);
168 extern int condexec_si_divide_operator (rtx
, enum machine_mode
);
169 extern int condexec_si_unary_operator (rtx
, enum machine_mode
);
170 extern int condexec_sf_conv_operator (rtx
, enum machine_mode
);
171 extern int condexec_sf_add_operator (rtx
, enum machine_mode
);
172 extern int condexec_memory_operand (rtx
, enum machine_mode
);
173 extern int intop_compare_operator (rtx
, enum machine_mode
);
174 extern int acc_operand (rtx
, enum machine_mode
);
175 extern int even_acc_operand (rtx
, enum machine_mode
);
176 extern int quad_acc_operand (rtx
, enum machine_mode
);
177 extern int accg_operand (rtx
, enum machine_mode
);
178 extern rtx
frv_matching_accg_for_acc (rtx
);
179 extern void frv_expand_fdpic_call (rtx
*, bool, bool);
180 extern rtx
frv_gen_GPsym2reg (rtx
, rtx
);
181 extern int frv_legitimate_memory_operand (rtx
, enum machine_mode
, int);
183 /* Information about a relocation unspec. SYMBOL is the relocation symbol
184 (a SYMBOL_REF or LABEL_REF), RELOC is the type of relocation and OFFSET
185 is the constant addend. */
189 HOST_WIDE_INT offset
;
192 extern bool frv_const_unspec_p (rtx
, struct frv_unspec
*);