aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr87962.c
blob: 6a551d3d5c8d922675f5a1cb999c2bd9350e2936 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { 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;
}