1 /* PR tree-optimization/39455 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fprefetch-loop-arrays -w" } */
4 /* { dg-additional-options "-march=i686 -msse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
5 
6 void
foo(char * x,unsigned long y,unsigned char * z)7 foo (char *x, unsigned long y, unsigned char *z)
8 {
9   unsigned int c[256], *d;
10 
11   for (d = c + 1; d < c + 256; ++d)
12     *d += d[-1];
13   x[--c[z[y]]] = 0;
14 }
15