| 1 |
/* { dg-additional-options "-O2" } */ |
| 2 |
/* { dg-additional-options "-fdump-tree-ealias-all" } */ |
| 3 |
|
| 4 |
#define N 2 |
| 5 |
|
| 6 |
void |
| 7 |
foo (void) |
| 8 |
{ |
| 9 |
unsigned int a[N]; |
| 10 |
unsigned int *p = &a[0]; |
| 11 |
|
| 12 |
#pragma acc kernels pcopyin (a, p[0:2]) |
| 13 |
{ |
| 14 |
a[0] = 0; |
| 15 |
*p = 1; |
| 16 |
} |
| 17 |
} |
| 18 |
|
| 19 |
/* Only the omp_data_i related loads should be annotated with |
| 20 |
non-base 0 cliques. */ |
| 21 |
/* { dg-final { scan-tree-dump-times "clique 1 base 1" 2 "ealias" } } */ |
| 22 |
/* { dg-final { scan-tree-dump-times "(?n)clique 1 base 0" 2 "ealias" } } */ |
| 23 |
|