OSDN Git Service

* config/sparc/sparc.c (sparc_emit_float_lib_cmp): New function.
[pf3gnuchains/gcc-fork.git] / gcc / config / sparc / sparc-protos.h
1 /* Prototypes of target machine for GNU compiler, for Sun SPARC.
2    Copyright (C) 1987, 88, 89, 92, 94-98, 1999 Free Software Foundation, Inc.
3    Contributed by Michael Tiemann (tiemann@cygnus.com).
4    64 bit SPARC V9 support by Michael Tiemann, Jim Wilson, and Doug Evans,
5    at Cygnus Support.
6
7 This file is part of GNU CC.
8
9 GNU CC is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
13
14 GNU CC is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with GNU CC; see the file COPYING.  If not, write to
21 the Free Software Foundation, 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA.  */
23
24 #ifndef __SPARC_PROTOS_H__
25 #define __SPARC_PROTOS_H__
26
27 #ifdef TREE_CODE
28 extern struct rtx_def *function_value PARAMS ((tree, enum machine_mode, int));
29 extern void function_arg_advance PARAMS ((CUMULATIVE_ARGS *,
30                                           enum machine_mode, tree, int));
31 extern struct rtx_def *function_arg PARAMS ((const CUMULATIVE_ARGS *,
32                                              enum machine_mode,
33                                              tree, int, int));
34 extern int function_arg_partial_nregs  PARAMS ((const CUMULATIVE_ARGS *,
35                                                 enum machine_mode,
36                                                 tree, int));
37 extern int function_arg_pass_by_reference PARAMS ((const CUMULATIVE_ARGS *,
38                                                    enum machine_mode,
39                                                    tree, int));
40 extern struct rtx_def *sparc_builtin_saveregs PARAMS ((void));
41 #ifdef RTX_CODE
42 extern void init_cumulative_args PARAMS ((CUMULATIVE_ARGS *, tree, rtx, int));
43 extern void sparc_va_start PARAMS ((int, tree, rtx));
44 #endif
45 extern struct rtx_def *sparc_va_arg PARAMS ((tree, tree));
46 extern unsigned long sparc_type_code PARAMS ((tree));
47 #ifdef ARGS_SIZE_RTX
48 /* expr.h defines ARGS_SIZE_RTX and `enum direction' */
49 extern enum direction function_arg_padding PARAMS ((enum machine_mode, tree));
50 #endif /* ARGS_SIZE_RTX */
51 #endif /* TREE_CODE */
52
53 extern void ultrasparc_sched_init PARAMS ((FILE *, int));
54 extern void finalize_pic PARAMS ((void));
55 extern void order_regs_for_local_alloc PARAMS ((void));
56 extern void output_function_epilogue PARAMS ((FILE *, int, int));
57 extern void output_function_prologue PARAMS ((FILE *, int, int));
58 extern void sparc_flat_output_function_epilogue PARAMS ((FILE *, int));
59 extern void sparc_flat_output_function_prologue PARAMS ((FILE *, int));
60 extern int compute_frame_size PARAMS ((int, int));
61 extern int check_pic PARAMS ((int));
62 extern int short_branch PARAMS ((int, int));
63 extern int sparc_flat_epilogue_delay_slots PARAMS ((void));
64 extern int sparc_issue_rate PARAMS ((void));
65 extern unsigned long sparc_flat_compute_frame_size PARAMS ((int));
66 extern void sparc_function_profiler PARAMS ((FILE *, int));
67 extern void sparc_function_block_profiler PARAMS ((FILE *, int));
68 extern void sparc_block_profiler PARAMS ((FILE *, int));
69 extern void sparc_function_block_profiler_exit PARAMS ((FILE *));
70 extern int compute_frame_size PARAMS ((int, int));
71 extern void sparc_override_options PARAMS ((void));
72 extern int leaf_return_peephole_ok PARAMS ((void));
73 extern void sparc_output_scratch_registers PARAMS ((FILE *));
74 extern void sparc_flat_save_restore PARAMS ((FILE *, const char *,
75                                              unsigned int, unsigned long,
76                                              unsigned long, const char *,
77                                              const char *, unsigned long));
78
79 #ifdef RTX_CODE
80 /* Define the function that build the compare insn for scc and bcc.  */
81 extern rtx gen_compare_reg PARAMS ((enum rtx_code code, rtx, rtx));
82 extern void sparc_emit_float_lib_cmp PARAMS ((rtx, rtx, enum rtx_code));
83 /* This function handles all v9 scc insns */
84 extern int gen_v9_scc PARAMS ((enum rtx_code, rtx *));
85 extern void sparc_initialize_trampoline PARAMS ((rtx, rtx, rtx));
86 extern void sparc64_initialize_trampoline PARAMS ((rtx, rtx, rtx));
87 extern rtx legitimize_pic_address PARAMS ((rtx, enum machine_mode, rtx));
88 extern void ultrasparc_sched_reorder PARAMS ((FILE *, int, rtx *, int));
89 extern int ultrasparc_variable_issue PARAMS ((rtx));
90 extern void sparc_defer_case_vector PARAMS ((rtx, rtx, int));
91 extern void sparc_emit_set_const32 PARAMS ((rtx, rtx));
92 extern void sparc_emit_set_const64 PARAMS ((rtx, rtx));
93 extern void sparc_emit_set_symbolic_const64 PARAMS ((rtx, rtx, rtx));
94 extern int sparc_splitdi_legitimate PARAMS ((rtx, rtx));
95 extern int sparc_absnegfloat_split_legitimate PARAMS ((rtx, rtx));
96 extern char *output_cbranch PARAMS ((rtx, int, int, int, int, rtx));
97 extern const char *output_return PARAMS ((rtx *));
98 extern char *output_v9branch PARAMS ((rtx, int, int, int, int, int, rtx));
99 extern void emit_v9_brxx_insn PARAMS ((enum rtx_code, rtx, rtx));
100 extern void output_double_int PARAMS ((FILE *, rtx));
101 extern void print_operand PARAMS ((FILE *, rtx, int));
102 extern int addrs_ok_for_ldd_peep PARAMS ((rtx, rtx));
103 extern int arith10_double_operand PARAMS ((rtx, enum machine_mode));
104 extern int arith10_operand PARAMS ((rtx, enum machine_mode));
105 extern int arith11_double_operand PARAMS ((rtx, enum machine_mode));
106 extern int arith11_operand PARAMS ((rtx, enum machine_mode));
107 extern int arith_double_operand PARAMS ((rtx, enum machine_mode));
108 extern int arith_double_4096_operand PARAMS ((rtx, enum machine_mode));
109 extern int arith_double_add_operand PARAMS ((rtx, enum machine_mode));
110 extern int arith_operand PARAMS ((rtx, enum machine_mode));
111 extern int arith_4096_operand PARAMS ((rtx, enum machine_mode));
112 extern int arith_add_operand PARAMS ((rtx, enum machine_mode));
113 extern int call_operand_address PARAMS ((rtx, enum machine_mode));
114 extern int input_operand PARAMS ((rtx, enum machine_mode));
115 extern int zero_operand PARAMS ((rtx, enum machine_mode));
116 extern int const64_operand PARAMS ((rtx, enum machine_mode));
117 extern int const64_high_operand PARAMS ((rtx, enum machine_mode));
118 extern int cc_arithop PARAMS ((rtx, enum machine_mode));
119 extern int cc_arithopn PARAMS ((rtx, enum machine_mode));
120 extern int data_segment_operand PARAMS ((rtx, enum machine_mode));
121 extern int eligible_for_epilogue_delay PARAMS ((rtx, int));
122 extern int eligible_for_return_delay PARAMS ((rtx));
123 extern int emit_move_sequence PARAMS ((rtx, enum machine_mode));
124 extern int extend_op PARAMS ((rtx, enum machine_mode));
125 extern int fcc_reg_operand PARAMS ((rtx, enum machine_mode));
126 extern int fp_zero_operand PARAMS ((rtx));
127 extern int icc_or_fcc_reg_operand PARAMS ((rtx, enum machine_mode));
128 extern int label_ref_operand PARAMS ((rtx, enum machine_mode));
129 extern int mem_min_alignment PARAMS ((rtx, int));
130 extern int noov_compare_op PARAMS ((rtx, enum machine_mode));
131 extern int pic_address_needs_scratch PARAMS ((rtx));
132 extern int reg_or_0_operand PARAMS ((rtx, enum machine_mode));
133 extern int reg_or_nonsymb_mem_operand PARAMS ((rtx, enum machine_mode));
134 extern int reg_unused_after PARAMS ((rtx, rtx));
135 extern int register_ok_for_ldd PARAMS ((rtx));
136 extern int registers_ok_for_ldd_peep PARAMS ((rtx, rtx));
137 extern int restore_operand PARAMS ((rtx, enum machine_mode));
138 extern int small_int PARAMS ((rtx, enum machine_mode));
139 extern int small_int_or_double PARAMS ((rtx, enum machine_mode));
140 extern int sp64_medium_pic_operand PARAMS ((rtx, enum machine_mode));
141 extern int sparc_flat_eligible_for_epilogue_delay PARAMS ((rtx, int));
142 extern int splittable_immediate_memory_operand PARAMS ((rtx, enum machine_mode));
143 extern int splittable_symbolic_memory_operand PARAMS ((rtx, enum machine_mode));
144 extern int sparc_adjust_cost PARAMS ((rtx, rtx, rtx, int));
145 extern int symbolic_memory_operand PARAMS ((rtx, enum machine_mode));
146 extern int symbolic_operand PARAMS ((rtx, enum machine_mode));
147 extern int text_segment_operand PARAMS ((rtx, enum machine_mode));
148 extern int uns_small_int PARAMS ((rtx, enum machine_mode));
149 extern int v9_regcmp_op PARAMS ((rtx, enum machine_mode));
150 extern int v9_regcmp_p PARAMS ((enum rtx_code));
151 extern char *sparc_v8plus_shift PARAMS ((rtx *, rtx, const char *));
152 /* Function used for V8+ code generation.  Returns 1 if the high
153    32 bits of REG are 0 before INSN.  */   
154 extern int sparc_check_64 PARAMS ((rtx, rtx));
155 extern int sparc_return_peephole_ok PARAMS ((rtx, rtx));
156 extern int intreg_operand PARAMS ((rtx, enum machine_mode));
157 extern int call_operand PARAMS ((rtx, enum machine_mode));
158 extern int eq_or_neq PARAMS ((rtx, enum machine_mode));
159 extern int normal_comp_operator PARAMS ((rtx, enum machine_mode));
160 extern int uns_arith_operand PARAMS ((rtx, enum machine_mode));
161 extern int clobbered_register PARAMS ((rtx, enum machine_mode));
162 #endif /* RTX_CODE */
163
164 #endif /* __SPARC_PROTOS_H__ */