libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-isinf-2.c
bloba236ca10310fbf6acc20017e94085824b0004d11
1 /* { dg-do compile } */
2 /* { dg-require-effective-target inf } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 int foo(unsigned int x)
7 return __builtin_isinf((double)x);
10 int foof(unsigned int x)
12 return __builtin_isinff((float)x);
15 int fool(unsigned int x)
17 return __builtin_isinfl((long double)x);
20 /* { dg-final { scan-tree-dump-times "_isinf" 0 "optimized" } } */
21 /* { dg-final { scan-tree-dump-times " u<= " 0 "optimized" } } */