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