libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-isnan-2.c
blob32b8833711f9e41e68f67be482a09975b64d4377
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_isnan((double)x);
10 int foof(unsigned int x)
12 return __builtin_isnanf((float)x);
15 int fool(unsigned int x)
17 return __builtin_isnanl((long double)x);
20 /* { dg-final { scan-tree-dump-times "_isnan" 0 "optimized" } } */
21 /* { dg-final { scan-tree-dump-times " unord " 0 "optimized" } } */