Skip to content

Commit 8303733

Browse files
committed
[OpenMP] Clean-up Fortran tests
* Use "do" for DO loops, there is no "for" in Fortran and it is always integer * Add -cpp to not rely on file name case * Add "implicit none" safety
1 parent 93073af commit 8303733

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

openmp/runtime/test/transform/tile/intfor.F90 renamed to openmp/runtime/test/transform/tile/do.F90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
! It is done 3 times corresponding to every possible fraction of the last
33
! iteration before passing beyond UB.
44

5-
! RUN: %flang %flags %openmp_flags -fopenmp-version=51 -DUB=16 %s -o %t-ub16.exe
6-
! RUN: %flang %flags %openmp_flags -fopenmp-version=51 -DUB=17 %s -o %t-ub17.exe
7-
! RUN: %flang %flags %openmp_flags -fopenmp-version=51 -DUB=18 %s -o %t-ub18.exe
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
88
! RUN: %t-ub16.exe | FileCheck %s --match-full-lines
99
! RUN: %t-ub17.exe | FileCheck %s --match-full-lines
1010
! RUN: %t-ub18.exe | FileCheck %s --match-full-lines
1111

12-
program tile_intfor_1d
12+
program tile_do_1d
1313
implicit none
1414
integer i
1515
print *, 'do'

openmp/runtime/test/transform/tile/intfor_2d.f90 renamed to openmp/runtime/test/transform/tile/do_2d.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
! RUN: %t.exe | FileCheck %s --match-full-lines
55

66

7-
program tile_intfor_2d
7+
program tile_do_2d
8+
implicit none
89
integer i, j
910
print *, 'do'
1011

openmp/runtime/test/transform/tile/intfor_2d_varsizes.F90 renamed to openmp/runtime/test/transform/tile/do_2d_varsizes.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
! RUN: %flang %flags %openmp_flags -fopenmp-version=51 %s -o %t.exe
44
! RUN: %t.exe | FileCheck %s --match-full-lines
55

6-
program tile_intfor_varsizes
6+
program tile_do_2d_varsizes
7+
implicit none
78
integer i
89

910
call kernel(7,17,3,2)

openmp/runtime/test/transform/unroll/heuristic_intdo.f90 renamed to openmp/runtime/test/transform/unroll/heuristic_do.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
! RUN: %t.exe | FileCheck %s --match-full-lines
55

66

7-
program unroll_heuristic
7+
program unroll_heuristic_do
8+
implicit none
89
integer :: i
910
print *, 'do'
1011

0 commit comments

Comments
 (0)