PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / vect / pr33426-ivdep-3.cc
blob0d8487431fa528fbafa5714d9ba1a780ef93c43f
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" } */
6 /* PR other/33426 */
7 /* Testing whether #pragma ivdep is working. */
9 int ar[100];
11 void foo(int *a) {
12 #pragma GCC ivdep
13 for (auto &i : ar) {
14 i *= *a;
18 /* { dg-message "loop vectorized" "" { target *-*-* } 0 } */
19 /* { dg-bogus " version\[^\n\r]* alias" "" { target *-*-* } 0 } */
21 /* { dg-final { scan-tree-dump-times "ANNOTATE_EXPR " 1 "original" } } */
22 /* { dg-final { scan-tree-dump-times "ANNOTATE " 1 "gimple" } } */