aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/conversion.c
blob: c1718f02736338d77f434ca42fd476acb28c68d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* Check that conversion functions don't leak into global namespace.  */

/* { dg-do link } */
/* { dg-options "-ffast-math" }  */
/* { dg-add-options c99_runtime } */

#include "../../gcc.dg/builtins-config.h"

int ifloor (double a) { return __builtin_ifloor (a); }
#ifdef HAVE_C99_RUNTIME
int ifloorf (float a) { return __builtin_ifloorf (a); }
int ifloorl (long double a) { return __builtin_ifloorl (a); }
#endif

long lfloor (double a) { return __builtin_lfloor (a); }
#ifdef HAVE_C99_RUNTIME
long lfloorf (float a) { return __builtin_lfloorf (a); }
long lfloorl (long double a) { return __builtin_lfloorl (a); }
#endif

long long llfloor (double a) { return __builtin_llfloor (a); }
#ifdef HAVE_C99_RUNTIME
long long llfloorf (float a) { return __builtin_llfloorf (a); }
long long llfloorl (long double a) { return __builtin_llfloorl (a); }
#endif

int iceil (double a) { return __builtin_iceil (a); }
#ifdef HAVE_C99_RUNTIME
int iceilf (float a) { return __builtin_iceilf (a); }
int iceill (long double a) { return __builtin_iceill (a); }
#endif

long lceil (double a) { return __builtin_lceil (a); }
#ifdef HAVE_C99_RUNTIME
long lceilf (float a) { return __builtin_lceilf (a); }
long lceill (long double a) { return __builtin_lceill (a); }
#endif

long long llceil (double a) { return __builtin_llceil (a); }
#ifdef HAVE_C99_RUNTIME
long long llceilf (float a) { return __builtin_llceilf (a); }
long long llceill (long double a) { return __builtin_llceill (a); }
#endif

int iround (double a) { return __builtin_iround (a); }
#ifdef HAVE_C99_RUNTIME
int iroundf (float a) { return __builtin_iroundf (a); }
int iroundl (long double a) { return __builtin_iroundl (a); }
#endif

int irint (double a) { return __builtin_irint (a); }
#ifdef HAVE_C99_RUNTIME
int irintf (float a) { return __builtin_irintf (a); }
int irintl (long double a) { return __builtin_irintl (a); }
#endif

int main () { return 0; }