Files
clang-p2996/flang/test/Parser/omp-nontemporal-unparse.f90
Arnamoy Bhattacharyya b9a8f34d47 [flang][OpenMP] Add parsing support for nontemporal clause.
This patch adds parsing support for the nontemporal clause.  Also adds a couple of test cases.

Reviewed By: clementval

Differential Revision: https://reviews.llvm.org/D106896
2021-09-13 15:25:47 -04:00

20 lines
348 B
Fortran

! RUN: %flang_fc1 -fdebug-unparse-no-sema -fopenmp %s | FileCheck %s
program omp_simd
integer i
integer, allocatable :: a(:)
allocate(a(10))
!NONTEMPORAL
!$omp simd nontemporal(a)
do i = 1, 10
a(i) = i
end do
!$omp end simd
end program omp_simd
!CHECK-LABEL: PROGRAM omp_simd
!NONTEMPORAL
!CHECK: !$OMP SIMD NONTEMPORAL(a)