PR middle-end/84309
[official-gcc.git] / gcc / testsuite / gcc.dg / pr84309.c
blob6fe774e57cfcb6e66f0aa66390e1307ad6c3f9d1
1 /* PR middle-end/84309 */
2 /* { dg-do run { target c99_runtime } } */
3 /* { dg-options "-O2 -ffast-math" } */
5 int
6 main ()
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;