annotate gcc/testsuite/gcc.dg/vect/vect-alias-check-5.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-require-effective-target vect_int } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 /* Intended to be larger than any VF. */
kono
parents:
diff changeset
5 #define GAP 128
kono
parents:
diff changeset
6 #define N (GAP * 3)
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 struct s { int x[N]; };
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 void
kono
parents:
diff changeset
11 f1 (struct s *a, struct s *b)
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 for (int i = 0; i < GAP * 2; ++i)
kono
parents:
diff changeset
14 a->x[i + GAP] += b->x[i];
kono
parents:
diff changeset
15 }
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 /* { dg-final { scan-tree-dump-times "consider run-time aliasing" 1 "vect" } } */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
18 /* { dg-final { scan-tree-dump-times "improved number of alias checks from 1 to 0" 1 "vect" { xfail vect_variable_length } } } */
111
kono
parents:
diff changeset
19 /* { dg-final { scan-tree-dump-times "LOOP VECTORIZED" 1 "vect" } } */