Debian Codegraph @

gcc/testsuite/gfortran.dg/goacc/reduction-2.f95

raw
1 ! { dg-do compile }
2 ! { dg-additional-options "-fdump-tree-gimple" }
3
4 ! See also '../../c-c++-common/goacc/combined-reduction.c'.
5
6 subroutine foo ()
7 implicit none
8 integer :: p, k, s
9 integer :: a
10
11 !$acc parallel loop reduction(+:a)
12 do p = 1,5
13 enddo
14 !$acc end parallel loop
15
16 !$acc kernels loop reduction(+:a)
17 do k = 2,6
18 enddo
19 !$acc end kernels loop
20
21 !$acc serial loop reduction(+:a)
22 do s = 1,5
23 enddo
24 !$acc end serial loop
25
26 end subroutine
27
28 ! { dg-final { scan-tree-dump-times "target oacc_parallel reduction..:a. map.tofrom.a." 1 "gimple" } }
29 ! { dg-final { scan-tree-dump-times "acc loop private.p. reduction..:a." 1 "gimple" } }
30 ! { dg-final { scan-tree-dump-times "target oacc_kernels map.force_tofrom:a .len: 4.." 1 "gimple" } }
31 ! { dg-final { scan-tree-dump-times "acc loop private.k. reduction..:a." 1 "gimple" } }
32 ! { dg-final { scan-tree-dump-times "target oacc_serial reduction..:a. map.tofrom.a." 1 "gimple" } }
33 ! { dg-final { scan-tree-dump-times "acc loop private.s. reduction..:a." 1 "gimple" } }
34