2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git] / gcc / testsuite / g++.dg / vect / pr33426-ivdep-3.cc
blob279a3bf061f1dca3d4117bae819194e9257351c1
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
3 /* { dg-additional-options "-std=c++11 -O3 -fopt-info-vec-optimized -fdump-tree-original -fdump-tree-gimple" } */
5 /* PR other/33426 */
6 /* Testing whether #pragma ivdep is working. */
8 int ar[100];
10 void foo(int *a) {
11 #pragma GCC ivdep
12 for (auto &i : ar) {
13 i *= *a;
17 /* { dg-message "loop vectorized" "" { target *-*-* } 0 } */
18 /* { dg-bogus " version\[^\n\r]* alias" "" { target *-*-* } 0 } */
19 /* { dg-final { cleanup-tree-dump "vect" } } */
21 /* { dg-final { scan-tree-dump-times "ANNOTATE_EXPR " 1 "original" } } */
22 /* { dg-final { cleanup-tree-dump "original" } } */
23 /* { dg-final { scan-tree-dump-times "ANNOTATE " 1 "gimple" } } */
24 /* { dg-final { cleanup-tree-dump "gimple" } } */