summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr39455.c
blob: 8e8c67034f2c0dd2cb479c3c82d0f4ba0540a1b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR tree-optimization/39455 */
/* { dg-do compile } */
/* { dg-options "-O2 -fprefetch-loop-arrays -w" } */

void
foo (char *x, unsigned long y, unsigned char *z)
{
  unsigned int c[256], *d;

  for (d = c + 1; d < c + 256; ++d)
    *d += d[-1];
  x[--c[z[y]]] = 0;
}