aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/vect/pr50014.c
blob: c04ffec2135d013cd76f63f68fdd3fd8676c6f23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-require-effective-target vect_int } */

int f(unsigned char *s, int n)
{
  int sum = 0;
  int i;

  for (i = 0; i < n; i++)
    sum += 256 * s[i];

  return sum;
}

/* { dg-final { cleanup-tree-dump "vect" } } */