]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr52592.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr52592.c
1 /* PR middle-end/52592 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu99 -O2 -ffast-math" } */
4
5 #define T(type, name) \
6 type name (type); \
7 __attribute__((cold)) \
8 int f##name (type x) \
9 { \
10 return (int) name (x); \
11 }
12
13 T (double, round)
14 T (float, roundf)
15 T (long double, roundl)
16 T (double, rint)
17 T (float, rintf)
18 T (long double, rintl)
19
20 /* { dg-final { scan-assembler-not "__builtin_iround" } } */
21 /* { dg-final { scan-assembler-not "__builtin_irint" } } */