Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / conversion.c
blobc1718f02736338d77f434ca42fd476acb28c68d9
1 /* Check that conversion functions don't leak into global namespace. */
3 /* { dg-do link } */
4 /* { dg-options "-ffast-math" } */
5 /* { dg-add-options c99_runtime } */
7 #include "../../gcc.dg/builtins-config.h"
9 int ifloor (double a) { return __builtin_ifloor (a); }
10 #ifdef HAVE_C99_RUNTIME
11 int ifloorf (float a) { return __builtin_ifloorf (a); }
12 int ifloorl (long double a) { return __builtin_ifloorl (a); }
13 #endif
15 long lfloor (double a) { return __builtin_lfloor (a); }
16 #ifdef HAVE_C99_RUNTIME
17 long lfloorf (float a) { return __builtin_lfloorf (a); }
18 long lfloorl (long double a) { return __builtin_lfloorl (a); }
19 #endif
21 long long llfloor (double a) { return __builtin_llfloor (a); }
22 #ifdef HAVE_C99_RUNTIME
23 long long llfloorf (float a) { return __builtin_llfloorf (a); }
24 long long llfloorl (long double a) { return __builtin_llfloorl (a); }
25 #endif
27 int iceil (double a) { return __builtin_iceil (a); }
28 #ifdef HAVE_C99_RUNTIME
29 int iceilf (float a) { return __builtin_iceilf (a); }
30 int iceill (long double a) { return __builtin_iceill (a); }
31 #endif
33 long lceil (double a) { return __builtin_lceil (a); }
34 #ifdef HAVE_C99_RUNTIME
35 long lceilf (float a) { return __builtin_lceilf (a); }
36 long lceill (long double a) { return __builtin_lceill (a); }
37 #endif
39 long long llceil (double a) { return __builtin_llceil (a); }
40 #ifdef HAVE_C99_RUNTIME
41 long long llceilf (float a) { return __builtin_llceilf (a); }
42 long long llceill (long double a) { return __builtin_llceill (a); }
43 #endif
45 int iround (double a) { return __builtin_iround (a); }
46 #ifdef HAVE_C99_RUNTIME
47 int iroundf (float a) { return __builtin_iroundf (a); }
48 int iroundl (long double a) { return __builtin_iroundl (a); }
49 #endif
51 int irint (double a) { return __builtin_irint (a); }
52 #ifdef HAVE_C99_RUNTIME
53 int irintf (float a) { return __builtin_irintf (a); }
54 int irintl (long double a) { return __builtin_irintl (a); }
55 #endif
57 int main () { return 0; }