LLVM OpenMP
22.0.0git
runtime
test
transform
unroll
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
7
program
unroll_heuristic
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'
18
end 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
unroll_heuristic
program unroll_heuristic
Definition
heuristic_intdo.f90:7
i
#define i
Definition
kmp_stub.cpp:87
Generated on
for LLVM OpenMP by
1.14.0