Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/goacc/kernels-alias-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-additional-options "-O2" } */ /* { dg-additional-options "-fdump-tree-ealias-all" } */ typedef __SIZE_TYPE__ size_t; extern void *acc_copyin (void *, size_t); void foo (void) { int a = 0; int *p = (int *)acc_copyin (&a, sizeof (a)); #pragma acc kernels deviceptr (p) pcopy(a) { a = 0; *p = 1; } } /* Only the omp_data_i related loads should be annotated with cliques. */ /* { dg-final { scan-tree-dump-times "clique 1 base 1" 2 "ealias" } } */ /* { dg-final { scan-tree-dump-times "(?n)clique 1 base 0" 3 "ealias" } } */