Debian Codegraph @

gcc/testsuite/gcc.dg/vect/pr81196-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* For negative stride we need to reverse the aligned load. */
4 /* { dg-require-effective-target vect_perm } */
5
6 void b (int *p)
7 {
8 p = (int *)__builtin_assume_aligned(p, __BIGGEST_ALIGNMENT__);
9 int *q = p + 255;
10 for(; p < q; ++p, --q)
11 {
12 int t = *p;
13 *p = *q;
14 *q = t;
15 }
16 }
17
18 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */