2018-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / ggc-pr37574.c
blob9ea097454814568cd79c8a258a517ad99a2467b1
1 /* { dg-do compile } */
3 #include <stdarg.h>
5 unsigned short in[40 +128];
6 int main (void) {
7 int i = 0, j = 0;
8 unsigned int diff;
9 unsigned int s=0,sum=0;
10 for (i = 0; i < 40;i++)
12 diff = 0;
13 for (j = 0; j < 128;j+=8)
14 diff += in[j+i];
15 s += ((unsigned short)diff>>3);
17 if (s != sum)
18 return -1;
19 return 0;