comparison gcc/testsuite/c-c++-common/goacc/kernels-alias-4.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 #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