From 55c2137939d8e12c064cedcda21108c239dddf8e Mon Sep 17 00:00:00 2001 From: "Zi Xuan Wu (Zeson)" Date: Thu, 20 Oct 2022 09:44:38 +0800 Subject: [PATCH] [testcase][OpenMP] Fix the testcase error of check-all when DCLANG_DEFAULT_OPENMP_RUNTIME is not libomp When DCLANG_DEFAULT_OPENMP_RUNTIME is set to libgomp, there is some check-all error. The expected CHECK result only displays when fopenmp=libomp is specified explicitly. Differential Revision: https://reviews.llvm.org/D136239 --- clang/test/Driver/fopenmp.c | 2 +- clang/test/Index/openmp-tile.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/test/Driver/fopenmp.c b/clang/test/Driver/fopenmp.c index aadade101125..6e31de109912 100644 --- a/clang/test/Driver/fopenmp.c +++ b/clang/test/Driver/fopenmp.c @@ -140,7 +140,7 @@ // CHECK-LD-STATIC-IOMP5-NO-BDYNAMIC: "-{{B?}}static" {{.*}} "-liomp5" // CHECK-LD-STATIC-IOMP5-NO-BDYNAMIC-NOT: "-Bdynamic" // -// RUN: %clang -target x86_64-linux-gnu -fopenmp -fopenmp-enable-irbuilder -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CC1-OPENMPIRBUILDER +// RUN: %clang -target x86_64-linux-gnu -fopenmp=libomp -fopenmp-enable-irbuilder -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CC1-OPENMPIRBUILDER // // CHECK-CC1-OPENMPIRBUILDER: "-cc1" // CHECK-CC1-OPENMPIRBUILDER-SAME: "-fopenmp" diff --git a/clang/test/Index/openmp-tile.c b/clang/test/Index/openmp-tile.c index a51bc82c228b..a9e379e0a4b6 100644 --- a/clang/test/Index/openmp-tile.c +++ b/clang/test/Index/openmp-tile.c @@ -1,4 +1,4 @@ -// RUN: c-index-test -test-load-source local %s -fopenmp -fopenmp-version=51 | FileCheck %s +// RUN: c-index-test -test-load-source local %s -fopenmp=libomp -fopenmp-version=51 | FileCheck %s void test() { #pragma omp tile sizes(5)