view gcc/testsuite/gcc.dg/pr87962.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-O3" } */
/* { dg-additional-options "-march=bdver2" { target { x86_64-*-* i?86-*-* } } } */

int a, b;

int c()
{
  long d, e;
  while (a) {
      a++;
      b = 0;
      for (; b++ - 2; d = d >> 1)
	e += d;
  }
  return e;
}