gcc/testsuite/gcc.dg/vect/pr66278.c
raw| 1 | /* { dg-do compile } */ |
| 2 | #define N 101 |
| 3 | |
| 4 | typedef unsigned int __uint32_t; |
| 5 | |
| 6 | int main(int argc, char **argv) |
| 7 | { |
| 8 | __uint32_t array[N][N][N]; |
| 9 | |
| 10 | const unsigned int next = argc == 3 ? 0 : 1; |
| 11 | |
| 12 | for (unsigned i = next; i < N; i++) |
| 13 | array[3][3][i] = array[3][3][i] - 10; |
| 14 | |
| 15 | return array[3][3][argc]; |
| 16 | } |
| 17 | |
| 18 | /* { dg-final { scan-tree-dump-times "LOOP VECTORIZED" 1 "vect" } } */ |
| 19 | /* { dg-require-effective-target vect_int } */ |