Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/goacc/kernels-alias-5.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* { dg-additional-options "-O2" } */ | |
2 /* { dg-additional-options "-fdump-tree-ealias-all" } */ | |
3 | |
4 void | |
5 foo (int *a) | |
6 { | |
7 int *p = a; | |
8 | |
9 #pragma acc kernels pcopyin (a[0:1], p[0:1]) | |
10 { | |
11 *a = 0; | |
12 *p = 1; | |
13 } | |
14 } | |
15 | |
16 /* Only the omp_data_i related loads should be annotated with cliques. */ | |
17 /* { dg-final { scan-tree-dump-times "clique 1 base 1" 2 "ealias" } } */ | |
18 /* { dg-final { scan-tree-dump-times "(?n)clique 1 base 0" 2 "ealias" } } */ | |
19 |