1 /* Definitions for code generation pass of GNU compiler.
2 Copyright (C) 2001 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 2, 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 COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 #ifndef GCC_LIBFUNCS_H
22 #define GCC_LIBFUNCS_H
24 /* Enumeration of indexes into libfunc_table. */
51 LTI_unwind_sjlj_register
,
52 LTI_unwind_sjlj_unregister
,
142 LTI_profile_function_entry
,
143 LTI_profile_function_exit
,
148 /* SYMBOL_REF rtx's for the library functions that are called
149 implicitly and not via optabs. */
150 extern rtx libfunc_table
[LTI_MAX
];
152 /* Accessor macros for libfunc_table. */
153 #define extendsfdf2_libfunc (libfunc_table[LTI_extendsfdf2])
154 #define extendsfxf2_libfunc (libfunc_table[LTI_extendsfxf2])
155 #define extendsftf2_libfunc (libfunc_table[LTI_extendsftf2])
156 #define extenddfxf2_libfunc (libfunc_table[LTI_extenddfxf2])
157 #define extenddftf2_libfunc (libfunc_table[LTI_extenddftf2])
159 #define truncdfsf2_libfunc (libfunc_table[LTI_truncdfsf2])
160 #define truncxfsf2_libfunc (libfunc_table[LTI_truncxfsf2])
161 #define trunctfsf2_libfunc (libfunc_table[LTI_trunctfsf2])
162 #define truncxfdf2_libfunc (libfunc_table[LTI_truncxfdf2])
163 #define trunctfdf2_libfunc (libfunc_table[LTI_trunctfdf2])
165 #define memcpy_libfunc (libfunc_table[LTI_memcpy])
166 #define memmove_libfunc (libfunc_table[LTI_memmove])
167 #define bcopy_libfunc (libfunc_table[LTI_bcopy])
168 #define memcmp_libfunc (libfunc_table[LTI_memcmp])
169 #define bcmp_libfunc (libfunc_table[LTI_bcmp])
170 #define memset_libfunc (libfunc_table[LTI_memset])
171 #define bzero_libfunc (libfunc_table[LTI_bzero])
173 #define unwind_resume_libfunc (libfunc_table[LTI_unwind_resume])
174 #define eh_personality_libfunc (libfunc_table[LTI_eh_personality])
175 #define setjmp_libfunc (libfunc_table[LTI_setjmp])
176 #define longjmp_libfunc (libfunc_table[LTI_longjmp])
177 #define unwind_sjlj_register_libfunc (libfunc_table[LTI_unwind_sjlj_register])
178 #define unwind_sjlj_unregister_libfunc \
179 (libfunc_table[LTI_unwind_sjlj_unregister])
181 #define eqhf2_libfunc (libfunc_table[LTI_eqhf2])
182 #define nehf2_libfunc (libfunc_table[LTI_nehf2])
183 #define gthf2_libfunc (libfunc_table[LTI_gthf2])
184 #define gehf2_libfunc (libfunc_table[LTI_gehf2])
185 #define lthf2_libfunc (libfunc_table[LTI_lthf2])
186 #define lehf2_libfunc (libfunc_table[LTI_lehf2])
187 #define unordhf2_libfunc (libfunc_table[LTI_unordhf2])
189 #define eqsf2_libfunc (libfunc_table[LTI_eqsf2])
190 #define nesf2_libfunc (libfunc_table[LTI_nesf2])
191 #define gtsf2_libfunc (libfunc_table[LTI_gtsf2])
192 #define gesf2_libfunc (libfunc_table[LTI_gesf2])
193 #define ltsf2_libfunc (libfunc_table[LTI_ltsf2])
194 #define lesf2_libfunc (libfunc_table[LTI_lesf2])
195 #define unordsf2_libfunc (libfunc_table[LTI_unordsf2])
197 #define eqdf2_libfunc (libfunc_table[LTI_eqdf2])
198 #define nedf2_libfunc (libfunc_table[LTI_nedf2])
199 #define gtdf2_libfunc (libfunc_table[LTI_gtdf2])
200 #define gedf2_libfunc (libfunc_table[LTI_gedf2])
201 #define ltdf2_libfunc (libfunc_table[LTI_ltdf2])
202 #define ledf2_libfunc (libfunc_table[LTI_ledf2])
203 #define unorddf2_libfunc (libfunc_table[LTI_unorddf2])
205 #define eqxf2_libfunc (libfunc_table[LTI_eqxf2])
206 #define nexf2_libfunc (libfunc_table[LTI_nexf2])
207 #define gtxf2_libfunc (libfunc_table[LTI_gtxf2])
208 #define gexf2_libfunc (libfunc_table[LTI_gexf2])
209 #define ltxf2_libfunc (libfunc_table[LTI_ltxf2])
210 #define lexf2_libfunc (libfunc_table[LTI_lexf2])
211 #define unordxf2_libfunc (libfunc_table[LTI_unordxf2])
213 #define eqtf2_libfunc (libfunc_table[LTI_eqtf2])
214 #define netf2_libfunc (libfunc_table[LTI_netf2])
215 #define gttf2_libfunc (libfunc_table[LTI_gttf2])
216 #define getf2_libfunc (libfunc_table[LTI_getf2])
217 #define lttf2_libfunc (libfunc_table[LTI_lttf2])
218 #define letf2_libfunc (libfunc_table[LTI_letf2])
219 #define unordtf2_libfunc (libfunc_table[LTI_unordtf2])
221 #define floatsisf_libfunc (libfunc_table[LTI_floatsisf])
222 #define floatdisf_libfunc (libfunc_table[LTI_floatdisf])
223 #define floattisf_libfunc (libfunc_table[LTI_floattisf])
225 #define floatsidf_libfunc (libfunc_table[LTI_floatsidf])
226 #define floatdidf_libfunc (libfunc_table[LTI_floatdidf])
227 #define floattidf_libfunc (libfunc_table[LTI_floattidf])
229 #define floatsixf_libfunc (libfunc_table[LTI_floatsixf])
230 #define floatdixf_libfunc (libfunc_table[LTI_floatdixf])
231 #define floattixf_libfunc (libfunc_table[LTI_floattixf])
233 #define floatsitf_libfunc (libfunc_table[LTI_floatsitf])
234 #define floatditf_libfunc (libfunc_table[LTI_floatditf])
235 #define floattitf_libfunc (libfunc_table[LTI_floattitf])
237 #define fixsfsi_libfunc (libfunc_table[LTI_fixsfsi])
238 #define fixsfdi_libfunc (libfunc_table[LTI_fixsfdi])
239 #define fixsfti_libfunc (libfunc_table[LTI_fixsfti])
241 #define fixdfsi_libfunc (libfunc_table[LTI_fixdfsi])
242 #define fixdfdi_libfunc (libfunc_table[LTI_fixdfdi])
243 #define fixdfti_libfunc (libfunc_table[LTI_fixdfti])
245 #define fixxfsi_libfunc (libfunc_table[LTI_fixxfsi])
246 #define fixxfdi_libfunc (libfunc_table[LTI_fixxfdi])
247 #define fixxfti_libfunc (libfunc_table[LTI_fixxfti])
249 #define fixtfsi_libfunc (libfunc_table[LTI_fixtfsi])
250 #define fixtfdi_libfunc (libfunc_table[LTI_fixtfdi])
251 #define fixtfti_libfunc (libfunc_table[LTI_fixtfti])
253 #define fixunssfsi_libfunc (libfunc_table[LTI_fixunssfsi])
254 #define fixunssfdi_libfunc (libfunc_table[LTI_fixunssfdi])
255 #define fixunssfti_libfunc (libfunc_table[LTI_fixunssfti])
257 #define fixunsdfsi_libfunc (libfunc_table[LTI_fixunsdfsi])
258 #define fixunsdfdi_libfunc (libfunc_table[LTI_fixunsdfdi])
259 #define fixunsdfti_libfunc (libfunc_table[LTI_fixunsdfti])
261 #define fixunsxfsi_libfunc (libfunc_table[LTI_fixunsxfsi])
262 #define fixunsxfdi_libfunc (libfunc_table[LTI_fixunsxfdi])
263 #define fixunsxfti_libfunc (libfunc_table[LTI_fixunsxfti])
265 #define fixunstfsi_libfunc (libfunc_table[LTI_fixunstfsi])
266 #define fixunstfdi_libfunc (libfunc_table[LTI_fixunstfdi])
267 #define fixunstfti_libfunc (libfunc_table[LTI_fixunstfti])
269 #define profile_function_entry_libfunc (libfunc_table[LTI_profile_function_entry])
270 #define profile_function_exit_libfunc (libfunc_table[LTI_profile_function_exit])
272 #endif /* GCC_LIBFUNCS_H */