summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20020927-1.c
blob: b93d8a18d5e32091148dfab4c9aeea575b30b6a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* PR optimization/7520 */
/* ICE at -O3 on x86 due to register life problems caused by
   the return-without-value in bar.  */

int
foo ()
{
  int i;
  long long int j;

  while (1)
    {
      if (j & 1)
	++i;
      j >>= 1;
      if (j)
	return i;
    }
}

int
bar ()
{
  if (foo ())
    return;
}