PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / pr42205-1.c
blobf08bbec96e51ab09408d1b89e9e2ba1f430a6cf4
1 /* { dg-require-effective-target int32plus } */
2 /* { dg-options "-O1 -ffast-math -floop-nest-optimize" } */
4 int adler32(int adler, char *buf, int n)
6 int sum = 0;
7 do {
8 adler += buf[0];
9 sum += adler;
10 adler += buf[1];
11 sum += adler;
12 adler += buf[2];
13 sum += adler;
14 adler += buf[3];
15 sum += adler;
16 } while (--n);
17 return adler | (sum << 16);