Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/goacc/kernels-alias-4.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-additional-options "-O2" } */ /* { dg-additional-options "-fdump-tree-ealias-all" } */ #define N 2 void foo (void) { unsigned int a[N]; unsigned int *p = &a[0]; #pragma acc kernels pcopyin (a, p[0:2]) { a[0] = 0; *p = 1; } } /* Only the omp_data_i related loads should be annotated with non-base 0 cliques. */ /* { dg-final { scan-tree-dump-times "clique 1 base 1" 2 "ealias" } } */ /* { dg-final { scan-tree-dump-times "(?n)clique 1 base 0" 2 "ealias" } } */