LLVM OpenMP 22.0.0git
heuristic_do.f90
Go to the documentation of this file.
1! This test checks lowering of OpenMP unroll directive
2
3! RUN: %flang %flags %openmp_flags -fopenmp-version=51 %s -o %t.exe
4! RUN: %t.exe | FileCheck %s --match-full-lines
5
6
8 implicit none
9 integer :: i
10 print *, 'do'
11
12 !$OMP UNROLL
13 do i=7, 18, 3
14 print '("i=", I0)', i
15 end do
16 !$OMP END UNROLL
17
18 print *, 'done'
19end program
20
21
22! CHECK: do
23! CHECK-NEXT: i=7
24! CHECK-NEXT: i=10
25! CHECK-NEXT: i=13
26! CHECK-NEXT: i=16
27! CHECK-NEXT: done
program unroll_heuristic_do
#define i
Definition kmp_stub.cpp:87