1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-require-effective-target vect_int_mult } */
4 /* { dg-additional-options "-std=c++11 -O3 -fopt-info-vec-optimized -fdump-tree-original -fdump-tree-gimple" } */
5
6 /* PR other/33426 */
7 /* Testing whether #pragma ivdep is working. */
8
9 int ar[100];
10
foo(int * a)11 void foo(int *a) {
12 #pragma GCC ivdep
13 for (auto &i : ar) {
14 i *= *a;
15 }
16 }
17
18 /* { dg-message "loop vectorized" "" { target *-*-* } 0 } */
19 /* { dg-bogus " version\[^\n\r]* alias" "" { target *-*-* } 0 } */
20
21 /* { dg-final { scan-tree-dump-times "ANNOTATE_EXPR " 1 "original" } } */
22 /* { dg-final { scan-tree-dump-times "ANNOTATE " 1 "gimple" } } */
23