LLVM OpenMP 22.0.0git
heuristic_intdo.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 integer :: i
9 print *, 'do'
10
11 !$OMP UNROLL
12 do i=7, 18, 3
13 print '("i=", I0)', i
14 end do
15 !$OMP END UNROLL
16
17 print *, 'done'
18end program
19
20
21! CHECK: do
22! CHECK-NEXT: i=7
23! CHECK-NEXT: i=10
24! CHECK-NEXT: i=13
25! CHECK-NEXT: i=16
26! CHECK-NEXT: done
program unroll_heuristic
#define i
Definition kmp_stub.cpp:87