oops - omitted in previous delta
[official-gcc.git] / gcc / libfuncs.h
blob9060b99907f09b5708d5f6e2449827f64c593926
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)
9 any later version.
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. */
25 enum libfunc_index
27 LTI_extendsfdf2,
28 LTI_extendsfxf2,
29 LTI_extendsftf2,
30 LTI_extenddfxf2,
31 LTI_extenddftf2,
33 LTI_truncdfsf2,
34 LTI_truncxfsf2,
35 LTI_trunctfsf2,
36 LTI_truncxfdf2,
37 LTI_trunctfdf2,
39 LTI_memcpy,
40 LTI_memmove,
41 LTI_bcopy,
42 LTI_memcmp,
43 LTI_bcmp,
44 LTI_memset,
45 LTI_bzero,
47 LTI_unwind_resume,
48 LTI_eh_personality,
49 LTI_setjmp,
50 LTI_longjmp,
51 LTI_unwind_sjlj_register,
52 LTI_unwind_sjlj_unregister,
54 LTI_eqhf2,
55 LTI_nehf2,
56 LTI_gthf2,
57 LTI_gehf2,
58 LTI_lthf2,
59 LTI_lehf2,
60 LTI_unordhf2,
62 LTI_eqsf2,
63 LTI_nesf2,
64 LTI_gtsf2,
65 LTI_gesf2,
66 LTI_ltsf2,
67 LTI_lesf2,
68 LTI_unordsf2,
70 LTI_eqdf2,
71 LTI_nedf2,
72 LTI_gtdf2,
73 LTI_gedf2,
74 LTI_ltdf2,
75 LTI_ledf2,
76 LTI_unorddf2,
78 LTI_eqxf2,
79 LTI_nexf2,
80 LTI_gtxf2,
81 LTI_gexf2,
82 LTI_ltxf2,
83 LTI_lexf2,
84 LTI_unordxf2,
86 LTI_eqtf2,
87 LTI_netf2,
88 LTI_gttf2,
89 LTI_getf2,
90 LTI_lttf2,
91 LTI_letf2,
92 LTI_unordtf2,
94 LTI_floatsisf,
95 LTI_floatdisf,
96 LTI_floattisf,
98 LTI_floatsidf,
99 LTI_floatdidf,
100 LTI_floattidf,
102 LTI_floatsixf,
103 LTI_floatdixf,
104 LTI_floattixf,
106 LTI_floatsitf,
107 LTI_floatditf,
108 LTI_floattitf,
110 LTI_fixsfsi,
111 LTI_fixsfdi,
112 LTI_fixsfti,
114 LTI_fixdfsi,
115 LTI_fixdfdi,
116 LTI_fixdfti,
118 LTI_fixxfsi,
119 LTI_fixxfdi,
120 LTI_fixxfti,
122 LTI_fixtfsi,
123 LTI_fixtfdi,
124 LTI_fixtfti,
126 LTI_fixunssfsi,
127 LTI_fixunssfdi,
128 LTI_fixunssfti,
130 LTI_fixunsdfsi,
131 LTI_fixunsdfdi,
132 LTI_fixunsdfti,
134 LTI_fixunsxfsi,
135 LTI_fixunsxfdi,
136 LTI_fixunsxfti,
138 LTI_fixunstfsi,
139 LTI_fixunstfdi,
140 LTI_fixunstfti,
142 LTI_chkr_check_addr,
143 LTI_chkr_set_right,
144 LTI_chkr_copy_bitmap,
145 LTI_chkr_check_exec,
146 LTI_chkr_check_str,
148 LTI_profile_function_entry,
149 LTI_profile_function_exit,
151 LTI_MAX
154 /* SYMBOL_REF rtx's for the library functions that are called
155 implicitly and not via optabs. */
156 extern rtx libfunc_table[LTI_MAX];
158 /* Accessor macros for libfunc_table. */
159 #define extendsfdf2_libfunc (libfunc_table[LTI_extendsfdf2])
160 #define extendsfxf2_libfunc (libfunc_table[LTI_extendsfxf2])
161 #define extendsftf2_libfunc (libfunc_table[LTI_extendsftf2])
162 #define extenddfxf2_libfunc (libfunc_table[LTI_extenddfxf2])
163 #define extenddftf2_libfunc (libfunc_table[LTI_extenddftf2])
165 #define truncdfsf2_libfunc (libfunc_table[LTI_truncdfsf2])
166 #define truncxfsf2_libfunc (libfunc_table[LTI_truncxfsf2])
167 #define trunctfsf2_libfunc (libfunc_table[LTI_trunctfsf2])
168 #define truncxfdf2_libfunc (libfunc_table[LTI_truncxfdf2])
169 #define trunctfdf2_libfunc (libfunc_table[LTI_trunctfdf2])
171 #define memcpy_libfunc (libfunc_table[LTI_memcpy])
172 #define memmove_libfunc (libfunc_table[LTI_memmove])
173 #define bcopy_libfunc (libfunc_table[LTI_bcopy])
174 #define memcmp_libfunc (libfunc_table[LTI_memcmp])
175 #define bcmp_libfunc (libfunc_table[LTI_bcmp])
176 #define memset_libfunc (libfunc_table[LTI_memset])
177 #define bzero_libfunc (libfunc_table[LTI_bzero])
179 #define unwind_resume_libfunc (libfunc_table[LTI_unwind_resume])
180 #define eh_personality_libfunc (libfunc_table[LTI_eh_personality])
181 #define setjmp_libfunc (libfunc_table[LTI_setjmp])
182 #define longjmp_libfunc (libfunc_table[LTI_longjmp])
183 #define unwind_sjlj_register_libfunc (libfunc_table[LTI_unwind_sjlj_register])
184 #define unwind_sjlj_unregister_libfunc \
185 (libfunc_table[LTI_unwind_sjlj_unregister])
187 #define eqhf2_libfunc (libfunc_table[LTI_eqhf2])
188 #define nehf2_libfunc (libfunc_table[LTI_nehf2])
189 #define gthf2_libfunc (libfunc_table[LTI_gthf2])
190 #define gehf2_libfunc (libfunc_table[LTI_gehf2])
191 #define lthf2_libfunc (libfunc_table[LTI_lthf2])
192 #define lehf2_libfunc (libfunc_table[LTI_lehf2])
193 #define unordhf2_libfunc (libfunc_table[LTI_unordhf2])
195 #define eqsf2_libfunc (libfunc_table[LTI_eqsf2])
196 #define nesf2_libfunc (libfunc_table[LTI_nesf2])
197 #define gtsf2_libfunc (libfunc_table[LTI_gtsf2])
198 #define gesf2_libfunc (libfunc_table[LTI_gesf2])
199 #define ltsf2_libfunc (libfunc_table[LTI_ltsf2])
200 #define lesf2_libfunc (libfunc_table[LTI_lesf2])
201 #define unordsf2_libfunc (libfunc_table[LTI_unordsf2])
203 #define eqdf2_libfunc (libfunc_table[LTI_eqdf2])
204 #define nedf2_libfunc (libfunc_table[LTI_nedf2])
205 #define gtdf2_libfunc (libfunc_table[LTI_gtdf2])
206 #define gedf2_libfunc (libfunc_table[LTI_gedf2])
207 #define ltdf2_libfunc (libfunc_table[LTI_ltdf2])
208 #define ledf2_libfunc (libfunc_table[LTI_ledf2])
209 #define unorddf2_libfunc (libfunc_table[LTI_unorddf2])
211 #define eqxf2_libfunc (libfunc_table[LTI_eqxf2])
212 #define nexf2_libfunc (libfunc_table[LTI_nexf2])
213 #define gtxf2_libfunc (libfunc_table[LTI_gtxf2])
214 #define gexf2_libfunc (libfunc_table[LTI_gexf2])
215 #define ltxf2_libfunc (libfunc_table[LTI_ltxf2])
216 #define lexf2_libfunc (libfunc_table[LTI_lexf2])
217 #define unordxf2_libfunc (libfunc_table[LTI_unordxf2])
219 #define eqtf2_libfunc (libfunc_table[LTI_eqtf2])
220 #define netf2_libfunc (libfunc_table[LTI_netf2])
221 #define gttf2_libfunc (libfunc_table[LTI_gttf2])
222 #define getf2_libfunc (libfunc_table[LTI_getf2])
223 #define lttf2_libfunc (libfunc_table[LTI_lttf2])
224 #define letf2_libfunc (libfunc_table[LTI_letf2])
225 #define unordtf2_libfunc (libfunc_table[LTI_unordtf2])
227 #define floatsisf_libfunc (libfunc_table[LTI_floatsisf])
228 #define floatdisf_libfunc (libfunc_table[LTI_floatdisf])
229 #define floattisf_libfunc (libfunc_table[LTI_floattisf])
231 #define floatsidf_libfunc (libfunc_table[LTI_floatsidf])
232 #define floatdidf_libfunc (libfunc_table[LTI_floatdidf])
233 #define floattidf_libfunc (libfunc_table[LTI_floattidf])
235 #define floatsixf_libfunc (libfunc_table[LTI_floatsixf])
236 #define floatdixf_libfunc (libfunc_table[LTI_floatdixf])
237 #define floattixf_libfunc (libfunc_table[LTI_floattixf])
239 #define floatsitf_libfunc (libfunc_table[LTI_floatsitf])
240 #define floatditf_libfunc (libfunc_table[LTI_floatditf])
241 #define floattitf_libfunc (libfunc_table[LTI_floattitf])
243 #define fixsfsi_libfunc (libfunc_table[LTI_fixsfsi])
244 #define fixsfdi_libfunc (libfunc_table[LTI_fixsfdi])
245 #define fixsfti_libfunc (libfunc_table[LTI_fixsfti])
247 #define fixdfsi_libfunc (libfunc_table[LTI_fixdfsi])
248 #define fixdfdi_libfunc (libfunc_table[LTI_fixdfdi])
249 #define fixdfti_libfunc (libfunc_table[LTI_fixdfti])
251 #define fixxfsi_libfunc (libfunc_table[LTI_fixxfsi])
252 #define fixxfdi_libfunc (libfunc_table[LTI_fixxfdi])
253 #define fixxfti_libfunc (libfunc_table[LTI_fixxfti])
255 #define fixtfsi_libfunc (libfunc_table[LTI_fixtfsi])
256 #define fixtfdi_libfunc (libfunc_table[LTI_fixtfdi])
257 #define fixtfti_libfunc (libfunc_table[LTI_fixtfti])
259 #define fixunssfsi_libfunc (libfunc_table[LTI_fixunssfsi])
260 #define fixunssfdi_libfunc (libfunc_table[LTI_fixunssfdi])
261 #define fixunssfti_libfunc (libfunc_table[LTI_fixunssfti])
263 #define fixunsdfsi_libfunc (libfunc_table[LTI_fixunsdfsi])
264 #define fixunsdfdi_libfunc (libfunc_table[LTI_fixunsdfdi])
265 #define fixunsdfti_libfunc (libfunc_table[LTI_fixunsdfti])
267 #define fixunsxfsi_libfunc (libfunc_table[LTI_fixunsxfsi])
268 #define fixunsxfdi_libfunc (libfunc_table[LTI_fixunsxfdi])
269 #define fixunsxfti_libfunc (libfunc_table[LTI_fixunsxfti])
271 #define fixunstfsi_libfunc (libfunc_table[LTI_fixunstfsi])
272 #define fixunstfdi_libfunc (libfunc_table[LTI_fixunstfdi])
273 #define fixunstfti_libfunc (libfunc_table[LTI_fixunstfti])
275 #define chkr_check_addr_libfunc (libfunc_table[LTI_chkr_check_addr])
276 #define chkr_set_right_libfunc (libfunc_table[LTI_chkr_set_right])
277 #define chkr_copy_bitmap_libfunc (libfunc_table[LTI_chkr_copy_bitmap])
278 #define chkr_check_exec_libfunc (libfunc_table[LTI_chkr_check_exec])
279 #define chkr_check_str_libfunc (libfunc_table[LTI_chkr_check_str])
281 #define profile_function_entry_libfunc (libfunc_table[LTI_profile_function_entry])
282 #define profile_function_exit_libfunc (libfunc_table[LTI_profile_function_exit])
284 #endif /* GCC_LIBFUNCS_H */