Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/pr107214-7.f90

raw
1 ! { dg-do compile }
2 ! { dg-additional-options "-fdump-tree-original" }
3
4 integer :: x
5
6 !$omp target simd map(x) private(x)
7 do i=1,1
8 x = x + 1
9 end do
10 !$omp end target simd
11
12 !$omp target teams distribute simd map(x) private(x)
13 do i=1,1
14 x = x + 1
15 end do
16 !$omp end target teams distribute simd
17
18 !$omp target parallel do simd map(x) private(x)
19 do i=1,1
20 x = x + 1
21 end do
22 !$omp end target parallel do simd
23
24 !$omp target teams distribute parallel do simd map(x) private(x)
25 do i=1,1
26 x = x + 1
27 end do
28 !$omp end target teams distribute parallel do simd
29
30 ! { dg-final { scan-tree-dump-times {omp target map\(tofrom:x\)} 4 "original" } }
31 ! { dg-final { scan-tree-dump-times {(?n)omp simd.* private\(x\)} 4 "original" } }
32
33 end