view gcc/testsuite/gcc.dg/pr84309.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line source

/* PR middle-end/84309 */
/* { dg-do run { target c99_runtime } } */
/* { dg-options "-O2 -ffast-math" } */

int
main ()
{
  unsigned long a = 1024;
  unsigned long b = 16 * 1024;
  unsigned long c = __builtin_pow (2, (__builtin_log2 (a) + __builtin_log2 (b)) / 2);
  if (c != 4096)
    __builtin_abort ();
  return 0;
}