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. */
53 LTI_unwind_sjlj_register,
54 LTI_unwind_sjlj_unregister,
104 LTI_profile_function_entry,
105 LTI_profile_function_exit,
113 /* SYMBOL_REF rtx's for the library functions that are called
114 implicitly and not via optabs. */
115 extern GTY(()) rtx libfunc_table[LTI_MAX];
117 /* Accessor macros for libfunc_table. */
118 #define extendsfdf2_libfunc (libfunc_table[LTI_extendsfdf2])
119 #define extendsfxf2_libfunc (libfunc_table[LTI_extendsfxf2])
120 #define extendsftf2_libfunc (libfunc_table[LTI_extendsftf2])
121 #define extenddfxf2_libfunc (libfunc_table[LTI_extenddfxf2])
122 #define extenddftf2_libfunc (libfunc_table[LTI_extenddftf2])
124 #define truncdfsf2_libfunc (libfunc_table[LTI_truncdfsf2])
125 #define truncxfsf2_libfunc (libfunc_table[LTI_truncxfsf2])
126 #define trunctfsf2_libfunc (libfunc_table[LTI_trunctfsf2])
127 #define truncxfdf2_libfunc (libfunc_table[LTI_truncxfdf2])
128 #define trunctfdf2_libfunc (libfunc_table[LTI_trunctfdf2])
130 #define abort_libfunc (libfunc_table[LTI_abort])
131 #define memcpy_libfunc (libfunc_table[LTI_memcpy])
132 #define memmove_libfunc (libfunc_table[LTI_memmove])
133 #define bcopy_libfunc (libfunc_table[LTI_bcopy])
134 #define memcmp_libfunc (libfunc_table[LTI_memcmp])
135 #define bcmp_libfunc (libfunc_table[LTI_bcmp])
136 #define memset_libfunc (libfunc_table[LTI_memset])
137 #define bzero_libfunc (libfunc_table[LTI_bzero])
138 #define setbits_libfunc (libfunc_table[LTI_setbits])
140 #define unwind_resume_libfunc (libfunc_table[LTI_unwind_resume])
141 #define eh_personality_libfunc (libfunc_table[LTI_eh_personality])
142 #define setjmp_libfunc (libfunc_table[LTI_setjmp])
143 #define longjmp_libfunc (libfunc_table[LTI_longjmp])
144 #define unwind_sjlj_register_libfunc (libfunc_table[LTI_unwind_sjlj_register])
145 #define unwind_sjlj_unregister_libfunc \
146 (libfunc_table[LTI_unwind_sjlj_unregister])
148 #define floatsisf_libfunc (libfunc_table[LTI_floatsisf])
149 #define floatdisf_libfunc (libfunc_table[LTI_floatdisf])
150 #define floattisf_libfunc (libfunc_table[LTI_floattisf])
152 #define floatsidf_libfunc (libfunc_table[LTI_floatsidf])
153 #define floatdidf_libfunc (libfunc_table[LTI_floatdidf])
154 #define floattidf_libfunc (libfunc_table[LTI_floattidf])
156 #define floatsixf_libfunc (libfunc_table[LTI_floatsixf])
157 #define floatdixf_libfunc (libfunc_table[LTI_floatdixf])
158 #define floattixf_libfunc (libfunc_table[LTI_floattixf])
160 #define floatsitf_libfunc (libfunc_table[LTI_floatsitf])
161 #define floatditf_libfunc (libfunc_table[LTI_floatditf])
162 #define floattitf_libfunc (libfunc_table[LTI_floattitf])
164 #define fixsfsi_libfunc (libfunc_table[LTI_fixsfsi])
165 #define fixsfdi_libfunc (libfunc_table[LTI_fixsfdi])
166 #define fixsfti_libfunc (libfunc_table[LTI_fixsfti])
168 #define fixdfsi_libfunc (libfunc_table[LTI_fixdfsi])
169 #define fixdfdi_libfunc (libfunc_table[LTI_fixdfdi])
170 #define fixdfti_libfunc (libfunc_table[LTI_fixdfti])
172 #define fixxfsi_libfunc (libfunc_table[LTI_fixxfsi])
173 #define fixxfdi_libfunc (libfunc_table[LTI_fixxfdi])
174 #define fixxfti_libfunc (libfunc_table[LTI_fixxfti])
176 #define fixtfsi_libfunc (libfunc_table[LTI_fixtfsi])
177 #define fixtfdi_libfunc (libfunc_table[LTI_fixtfdi])
178 #define fixtfti_libfunc (libfunc_table[LTI_fixtfti])
180 #define fixunssfsi_libfunc (libfunc_table[LTI_fixunssfsi])
181 #define fixunssfdi_libfunc (libfunc_table[LTI_fixunssfdi])
182 #define fixunssfti_libfunc (libfunc_table[LTI_fixunssfti])
184 #define fixunsdfsi_libfunc (libfunc_table[LTI_fixunsdfsi])
185 #define fixunsdfdi_libfunc (libfunc_table[LTI_fixunsdfdi])
186 #define fixunsdfti_libfunc (libfunc_table[LTI_fixunsdfti])
188 #define fixunsxfsi_libfunc (libfunc_table[LTI_fixunsxfsi])
189 #define fixunsxfdi_libfunc (libfunc_table[LTI_fixunsxfdi])
190 #define fixunsxfti_libfunc (libfunc_table[LTI_fixunsxfti])
192 #define fixunstfsi_libfunc (libfunc_table[LTI_fixunstfsi])
193 #define fixunstfdi_libfunc (libfunc_table[LTI_fixunstfdi])
194 #define fixunstfti_libfunc (libfunc_table[LTI_fixunstfti])
196 #define profile_function_entry_libfunc (libfunc_table[LTI_profile_function_entry])
197 #define profile_function_exit_libfunc (libfunc_table[LTI_profile_function_exit])
199 #define gcov_flush_libfunc (libfunc_table[LTI_gcov_flush])
200 #define gcov_init_libfunc (libfunc_table[LTI_gcov_init])
202 #endif /* GCC_LIBFUNCS_H */