2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / ggc-pr37574.c
blob176aa7eafc0b2db4a3b0b09b7a393c2cb5cceac4
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;
22 /* { dg-final { cleanup-tree-dump "vect" } } */