aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr82472.c
blob: 445c95fbc47b9ba60f87e7d3e0fc40baf51d6d64 (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
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-loop-distribution" } */

long int xj;

int
cx (long int *ox, short int mk, char tf)
{
  int si, f9;
  char *p4 = &tf;
  short int *rm = (tf != 0) ? (short int *)&f9 : &mk;

  for (f9 = 0; f9 < 2; ++f9)
    {
      *rm = 0;
      *p4 = *ox;
      si = mk;
      xj = 0;
      while (p4 < (char *)rm)
        ++p4;
    }

  return si;
}