2018-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr50014.c
blob6ed43c681a9cd3a3a1e436a7efeb261e9284e350
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
4 int f(unsigned char *s, int n)
6 int sum = 0;
7 int i;
9 for (i = 0; i < n; i++)
10 sum += 256 * s[i];
12 return sum;