gcc/testsuite/gcc.dg/vect/pr91750.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target vect_int } */ |
| 3 | |
| 4 | int val[1024]; |
| 5 | void |
| 6 | foo (int n) |
| 7 | { |
| 8 | int i; |
| 9 | for (int j = 0, i = n; j < 1024; ++j, i=(unsigned)i+1) |
| 10 | val[j] = i; |
| 11 | } |
| 12 | |
| 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" } } */ |