2017-09-26 Thomas Koenig <tkoenig@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr52592.c
blobb71eb628de260ea98d2137b6202514e5b889285a
1 /* PR middle-end/52592 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu99 -O2 -ffast-math" } */
5 #define T(type, name) \
6 type name (type); \
7 __attribute__((cold)) \
8 int f##name (type x) \
9 { \
10 return (int) name (x); \
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)
20 /* { dg-final { scan-assembler-not "__builtin_iround" } } */
21 /* { dg-final { scan-assembler-not "__builtin_irint" } } */