Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/goacc/kernels-alias-7.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 typedef __SIZE_TYPE__ size_t; | |
5 extern void *acc_copyin (void *, size_t); | |
6 | |
7 #define N 2 | |
8 | |
9 void | |
10 foo (void) | |
11 { | |
12 int a[N]; | |
13 int *p = (int *)acc_copyin (&a[0], sizeof (a)); | |
14 | |
15 #pragma acc kernels deviceptr (p) pcopy(a) | |
16 { | |
17 a[0] = 0; | |
18 *p = 1; | |
19 } | |
20 } | |
21 | |
22 /* Only the omp_data_i related loads should be annotated with cliques. */ | |
23 /* { dg-final { scan-tree-dump-times "clique 1 base 1" 2 "ealias" } } */ | |
24 /* { dg-final { scan-tree-dump-times "(?n)clique 1 base 0" 3 "ealias" } } */ | |
25 |