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" } */
6 /* Testing whether #pragma ivdep is working. */
10 template<class T
, class T2
>
11 void Loop(T
*b
, T2 c
) {
18 void foo(std::vector
<int> *ar
, int *b
) {
19 Loop
<std::vector
<int>, int*>(ar
, b
);
22 /* { dg-message "loop vectorized" "" { target *-*-* } 0 } */
23 /* FIXME: dg-bogus " version" "" { target *-*-* } 0 */
24 /* FIXME: dg-bogus " alias" "" { target *-*-* } 0 */
25 /* { dg-final { cleanup-tree-dump "vect" } } */
27 /* { dg-final { scan-tree-dump-times "ANNOTATE_EXPR " 1 "original" } } */
28 /* { dg-final { cleanup-tree-dump "original" } } */
29 /* { dg-final { scan-tree-dump-times "ANNOTATE " 1 "gimple" } } */
30 /* { dg-final { cleanup-tree-dump "gimple" } } */