Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/vect/vect-alias-check-6.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-require-effective-target vect_int } */ #define N 16 struct s { int x[N]; }; void f1 (struct s *a, struct s *b) { for (int i = 0; i < N - 1; ++i) a->x[i + 1] += b->x[i]; } /* { dg-final { scan-tree-dump {checking that [^\n]* and [^\n]* have different addresses} "vect" } } */ /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */