From a8a9153a372afcfe2d18399b079bfdc5fd4da626 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Fri, 29 Dec 2017 18:07:07 +0000 Subject: [OPENMP] Support for -fopenmp-simd option with compilation of simd loops only. Added support for -fopenmp-simd option that allows compilation of simd-based constructs without emission of OpenMP runtime calls. llvm-svn: 321560 --- clang/test/OpenMP/openmp_check.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang/test/OpenMP/openmp_check.cpp') diff --git a/clang/test/OpenMP/openmp_check.cpp b/clang/test/OpenMP/openmp_check.cpp index d46213a90e9..14820485c0a 100644 --- a/clang/test/OpenMP/openmp_check.cpp +++ b/clang/test/OpenMP/openmp_check.cpp @@ -2,6 +2,11 @@ // RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 -std=c++98 %s // RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 -std=c++11 %s +// RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 %s +// RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 -std=c++98 %s +// RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 -std=c++11 %s +// SIMD-ONLY0-NOT: {{__kmpc|__tgt}} + int nested(int a) { #pragma omp parallel ++a; -- cgit v1.2.3