Debian Codegraph @

openmp/runtime/test/transform/tile/do.F90

raw
1 ! This test checks lowering of the OpenMP tile directive
2 ! It is done 3 times corresponding to every possible fraction of the last
3 ! iteration before passing beyond UB.
4
5 ! RUN: %flang %flags %openmp_flags -fopenmp-version=51 -cpp -DUB=16 %s -o %t-ub16.exe
6 ! RUN: %flang %flags %openmp_flags -fopenmp-version=51 -cpp -DUB=17 %s -o %t-ub17.exe
7 ! RUN: %flang %flags %openmp_flags -fopenmp-version=51 -cpp -DUB=18 %s -o %t-ub18.exe
8 ! RUN: %t-ub16.exe | FileCheck %s --match-full-lines
9 ! RUN: %t-ub17.exe | FileCheck %s --match-full-lines
10 ! RUN: %t-ub18.exe | FileCheck %s --match-full-lines
11
12 program tile_do_1d
13 implicit none
14 integer i
15 print *, 'do'
16
17 !$OMP TILE SIZES(2)
18 do i=7, UB, 3
19 print '("i=", I0)', i
20 end do
21 !$OMP END TILE
22
23 print *, 'done'
24 end program
25
26
27 ! CHECK: do
28 ! CHECK-NEXT: i=7
29 ! CHECK-NEXT: i=10
30 ! CHECK-NEXT: i=13
31 ! CHECK-NEXT: i=16
32 ! CHECK-NEXT: done