libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr91750.c
blob3586f1168ae19cf9ec41a19db6ef767c193f0365
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
4 int val[1024];
5 void
6 foo (int n)
8 int i;
9 for (int j = 0, i = n; j < 1024; ++j, i=(unsigned)i+1)
10 val[j] = i;
13 /* Make sure the induction IV uses an unsigned increment. */
14 /* { dg-final { scan-tree-dump {vector\([][0-9,]*\) unsigned int} "vect" } } */
15 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */