summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr42205-1.c
blob: 413b9f7eab8b81677fb28740e4a8d368c9889032 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-options "-O1 -ffast-math -floop-interchange" } */

int adler32(int adler, char *buf, int n)
{
  int sum = 0;
  do {
     adler += buf[0];
     sum += adler;
     adler += buf[1];
     sum += adler;
     adler += buf[2];
     sum += adler;
     adler += buf[3];
     sum += adler;
  } while (--n);
  return adler | (sum << 16);
}