Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/vect/vect-alias-check-5.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-require-effective-target vect_int } */ /* Intended to be larger than any VF. */ #define GAP 128 #define N (GAP * 3) struct s { int x[N]; }; void f1 (struct s *a, struct s *b) { for (int i = 0; i < GAP * 2; ++i) a->x[i + GAP] += b->x[i]; } /* { dg-final { scan-tree-dump-times "consider run-time aliasing" 1 "vect" } } */ /* { dg-final { scan-tree-dump-times "improved number of alias checks from 1 to 0" 1 "vect" { xfail vect_variable_length } } } */ /* { dg-final { scan-tree-dump-times "LOOP VECTORIZED" 1 "vect" } } */