(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr84309.c
       1  /* PR middle-end/84309 */
       2  /* { dg-do run { target c99_runtime } } */
       3  /* { dg-options "-O2 -ffast-math" } */
       4  
       5  int
       6  main ()
       7  {
       8    unsigned long a = 1024;
       9    unsigned long b = 16 * 1024;
      10    unsigned long c = __builtin_pow (2, (__builtin_log2 (a) + __builtin_log2 (b)) / 2);
      11    if (c != 4096)
      12      __builtin_abort ();
      13    return 0;
      14  }