0
|
1 /* Prototypes for pa.c functions used in the md file & elsewhere.
|
|
2 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007 Free Software Foundation,
|
|
3 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 #ifdef RTX_CODE
|
|
22 /* Prototype function used in various macros. */
|
|
23 extern int symbolic_operand (rtx, enum machine_mode);
|
|
24 extern int tls_symbolic_operand (rtx);
|
|
25 extern rtx pa_eh_return_handler_rtx (void);
|
|
26
|
|
27 /* Used in insn-*.c. */
|
|
28 extern int following_call (rtx);
|
|
29 extern int function_label_operand (rtx, enum machine_mode);
|
|
30 extern int lhs_lshift_cint_operand (rtx, enum machine_mode);
|
|
31
|
|
32 extern rtx hppa_legitimize_address (rtx, rtx, enum machine_mode);
|
|
33
|
|
34 /* Define functions in pa.c and used in insn-output.c. */
|
|
35
|
|
36 extern const char *output_and (rtx *);
|
|
37 extern const char *output_ior (rtx *);
|
|
38 extern const char *output_move_double (rtx *);
|
|
39 extern const char *output_fp_move_double (rtx *);
|
|
40 extern const char *output_block_move (rtx *, int);
|
|
41 extern const char *output_block_clear (rtx *, int);
|
|
42 extern const char *output_cbranch (rtx *, int, rtx);
|
|
43 extern const char *output_lbranch (rtx, rtx, int);
|
|
44 extern const char *output_bb (rtx *, int, rtx, int);
|
|
45 extern const char *output_bvb (rtx *, int, rtx, int);
|
|
46 extern const char *output_dbra (rtx *, rtx, int);
|
|
47 extern const char *output_movb (rtx *, rtx, int, int);
|
|
48 extern const char *output_parallel_movb (rtx *, rtx);
|
|
49 extern const char *output_parallel_addb (rtx *, rtx);
|
|
50 extern const char *output_call (rtx, rtx, int);
|
|
51 extern const char *output_indirect_call (rtx, rtx);
|
|
52 extern const char *output_millicode_call (rtx, rtx);
|
|
53 extern const char *output_mul_insn (int, rtx);
|
|
54 extern const char *output_div_insn (rtx *, int, rtx);
|
|
55 extern const char *output_mod_insn (int, rtx);
|
|
56 extern const char *singlemove_string (rtx *);
|
|
57 extern void output_arg_descriptor (rtx);
|
|
58 extern void output_global_address (FILE *, rtx, int);
|
|
59 extern void print_operand (FILE *, rtx, int);
|
|
60 extern rtx legitimize_pic_address (rtx, enum machine_mode, rtx);
|
|
61 extern struct rtx_def *gen_cmp_fp (enum rtx_code, rtx, rtx);
|
|
62 extern void hppa_encode_label (rtx);
|
|
63 extern int arith11_operand (rtx, enum machine_mode);
|
|
64 extern int adddi3_operand (rtx, enum machine_mode);
|
|
65 extern int indexed_memory_operand (rtx, enum machine_mode);
|
|
66 extern int symbolic_expression_p (rtx);
|
|
67 extern int symbolic_memory_operand (rtx, enum machine_mode);
|
|
68 extern bool pa_tls_referenced_p (rtx);
|
|
69 extern int pa_adjust_insn_length (rtx, int);
|
|
70 extern int int11_operand (rtx, enum machine_mode);
|
|
71 extern int reg_or_cint_move_operand (rtx, enum machine_mode);
|
|
72 extern int arith5_operand (rtx, enum machine_mode);
|
|
73 extern int uint5_operand (rtx, enum machine_mode);
|
|
74 extern int pic_label_operand (rtx, enum machine_mode);
|
|
75 extern int plus_xor_ior_operator (rtx, enum machine_mode);
|
|
76 extern int borx_reg_operand (rtx, enum machine_mode);
|
|
77 extern int shadd_operand (rtx, enum machine_mode);
|
|
78 extern int arith_operand (rtx, enum machine_mode);
|
|
79 extern int read_only_operand (rtx, enum machine_mode);
|
|
80 extern int move_dest_operand (rtx, enum machine_mode);
|
|
81 extern int move_src_operand (rtx, enum machine_mode);
|
|
82 extern int prefetch_cc_operand (rtx, enum machine_mode);
|
|
83 extern int prefetch_nocc_operand (rtx, enum machine_mode);
|
|
84 extern int and_operand (rtx, enum machine_mode);
|
|
85 extern int ior_operand (rtx, enum machine_mode);
|
|
86 extern int arith32_operand (rtx, enum machine_mode);
|
|
87 extern int uint32_operand (rtx, enum machine_mode);
|
|
88 extern int reg_before_reload_operand (rtx, enum machine_mode);
|
|
89 extern int reg_or_0_operand (rtx, enum machine_mode);
|
|
90 extern int reg_or_0_or_nonsymb_mem_operand (rtx, enum machine_mode);
|
|
91 extern int pre_cint_operand (rtx, enum machine_mode);
|
|
92 extern int post_cint_operand (rtx, enum machine_mode);
|
|
93 extern int div_operand (rtx, enum machine_mode);
|
|
94 extern int int5_operand (rtx, enum machine_mode);
|
|
95 extern int movb_comparison_operator (rtx, enum machine_mode);
|
|
96 extern int ireg_or_int5_operand (rtx, enum machine_mode);
|
|
97 extern int fmpyaddoperands (rtx *);
|
|
98 extern int fmpysuboperands (rtx *);
|
|
99 extern int call_operand_address (rtx, enum machine_mode);
|
|
100 extern int ior_operand (rtx, enum machine_mode);
|
|
101 extern void emit_bcond_fp (enum rtx_code, rtx);
|
|
102 extern int emit_move_sequence (rtx *, enum machine_mode, rtx);
|
|
103 extern int emit_hpdiv_const (rtx *, int);
|
|
104 extern int is_function_label_plus_const (rtx);
|
|
105 extern int jump_in_call_delay (rtx);
|
|
106 extern int hppa_fpstore_bypass_p (rtx, rtx);
|
|
107 extern int attr_length_millicode_call (rtx);
|
|
108 extern int attr_length_call (rtx, int);
|
|
109 extern int attr_length_indirect_call (rtx);
|
|
110 extern int attr_length_save_restore_dltp (rtx);
|
|
111
|
|
112 /* Declare functions defined in pa.c and used in templates. */
|
|
113
|
|
114 extern struct rtx_def *return_addr_rtx (int, rtx);
|
|
115
|
|
116 extern int fp_reg_operand (rtx, enum machine_mode);
|
|
117 extern int arith_double_operand (rtx, enum machine_mode);
|
|
118 extern int ireg_operand (rtx, enum machine_mode);
|
|
119 extern int lhs_lshift_operand (rtx, enum machine_mode);
|
|
120 extern int pc_or_label_operand (rtx, enum machine_mode);
|
|
121 #ifdef ARGS_SIZE_RTX
|
|
122 /* expr.h defines ARGS_SIZE_RTX and `enum direction' */
|
|
123 #ifdef TREE_CODE
|
|
124 extern enum direction function_arg_padding (enum machine_mode, const_tree);
|
|
125 #endif
|
|
126 #endif /* ARGS_SIZE_RTX */
|
|
127 extern int non_hard_reg_operand (rtx, enum machine_mode);
|
|
128 extern int eq_neq_comparison_operator (rtx, enum machine_mode);
|
|
129 extern int insn_refs_are_delayed (rtx);
|
|
130 extern rtx get_deferred_plabel (rtx);
|
|
131 #endif /* RTX_CODE */
|
|
132
|
|
133 extern int integer_store_memory_operand (rtx, enum machine_mode);
|
|
134 extern int ldil_cint_p (HOST_WIDE_INT);
|
|
135 extern int zdepi_cint_p (unsigned HOST_WIDE_INT);
|
|
136
|
|
137 extern void override_options (void);
|
|
138 extern void output_ascii (FILE *, const char *, int);
|
|
139 extern HOST_WIDE_INT compute_frame_size (HOST_WIDE_INT, int *);
|
|
140 extern int and_mask_p (unsigned HOST_WIDE_INT);
|
|
141 extern int cint_ok_for_move (HOST_WIDE_INT);
|
|
142 extern void hppa_expand_prologue (void);
|
|
143 extern void hppa_expand_epilogue (void);
|
|
144 extern int ior_mask_p (unsigned HOST_WIDE_INT);
|
|
145 extern void compute_zdepdi_operands (unsigned HOST_WIDE_INT,
|
|
146 unsigned *);
|
|
147 #ifdef RTX_CODE
|
|
148 extern const char * output_64bit_and (rtx *);
|
|
149 extern const char * output_64bit_ior (rtx *);
|
|
150 extern int cmpib_comparison_operator (rtx, enum machine_mode);
|
|
151 #endif
|
|
152
|
|
153
|
|
154 /* Miscellaneous functions in pa.c. */
|
|
155 #ifdef TREE_CODE
|
|
156 extern int reloc_needed (tree);
|
|
157 #ifdef RTX_CODE
|
|
158 extern rtx function_arg (CUMULATIVE_ARGS *, enum machine_mode,
|
|
159 tree, int);
|
|
160 extern rtx function_value (const_tree, const_tree);
|
|
161 #endif
|
|
162 extern bool pa_return_in_memory (const_tree, const_tree);
|
|
163 #endif /* TREE_CODE */
|
|
164
|
|
165 extern void pa_asm_output_aligned_bss (FILE *, const char *,
|
|
166 unsigned HOST_WIDE_INT,
|
|
167 unsigned int);
|
|
168 extern void pa_asm_output_aligned_common (FILE *, const char *,
|
|
169 unsigned HOST_WIDE_INT,
|
|
170 unsigned int);
|
|
171 extern void pa_asm_output_aligned_local (FILE *, const char *,
|
|
172 unsigned HOST_WIDE_INT,
|
|
173 unsigned int);
|
|
174 extern void pa_hpux_asm_output_external (FILE *, tree, const char *);
|
|
175 extern bool pa_cannot_change_mode_class (enum machine_mode, enum machine_mode,
|
|
176 enum reg_class);
|
|
177 extern bool pa_modes_tieable_p (enum machine_mode, enum machine_mode);
|
|
178
|
|
179 extern const int magic_milli[];
|
|
180 extern int shadd_constant_p (int);
|