aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr67447.c
blob: 85a0e147e4a6da6d76da0d72579abdad8960c748 (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
/* { dg-do compile } */
/* { dg-options "-O3 -march=haswell" } */

struct _GPart {
  int *g;
};
static int b, d, e;
int *c, *f, *g;
int a;

int fn2(int, int);

int fn1(int p1) {
  int h = fn2(p1, (int)(long)&e);
  for (; d < e; d++)
    if (f[d] != a)
      h += g ? g[f[d]] : 1;
  return h;
}

int main() {
  struct _GPart *i;
  for (; b < (int)(long)(i->g); b++)
    c[b] = fn1((int)(long)i->g);
}