(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
fold-isinf-1.c
       1  /* { dg-do compile } */
       2  /* { dg-require-effective-target inf } */
       3  /* { dg-options "-O2 -fdump-tree-optimized" } */
       4  
       5  int foo(int x)
       6  {
       7    return __builtin_isinf((double)x);
       8  }
       9  
      10  int foof(int x)
      11  {
      12    return __builtin_isinff((float)x);
      13  }
      14  
      15  int fool(int x)
      16  {
      17    return __builtin_isinfl((long double)x);
      18  }
      19  
      20  /* { dg-final { scan-tree-dump-times "_isinf" 0 "optimized" } } */
      21  /* { dg-final { scan-tree-dump-times " u<= " 0 "optimized" } } */