blob: 6ed43c681a9cd3a3a1e436a7efeb261e9284e350 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* { 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;
}
|