aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr88331.c
blob: dbc63774bb74f39ab40d4c1f89847f17fcb8ff1e (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
27
28
29
30
/* PR rtl-optimization/88331 */
/* { dg-do compile } */
/* { dg-options "-O3 -march=core-avx2" } */

int b, d, e, g, i, j, l, m;
int *c, *h, *n, *o;
long f, k;

void
foo (void)
{
  long p = i;
  int *a = o;
  while (p)
    {
      n = (int *) (__UINTPTR_TYPE__) a[0];
      for (; f; f += 4)
	for (; m <= d;)
	  {
	    for (; g <= e; ++g)
	      l = (int) (__UINTPTR_TYPE__) (n + l);
	    c[m] = (int) (__UINTPTR_TYPE__) n;
	  }
    }
  int q = 0;
  k = 0;
  for (; k < j; k++)
    q += o[k] * h[k];
  b = q;
}