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