diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-05-28 21:20:14 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-05-28 21:20:14 +0000 |
commit | 25c6a22e4389dc5f40660b7c6c1c7ccb6759c33c (patch) | |
tree | 4cd528a2842d08b4c531e96f47266824959292ac /clang/test/Driver/fopenmp.c | |
parent | 7f9511409b09112427013cf441738568768df15a (diff) | |
download | bcm5719-llvm-25c6a22e4389dc5f40660b7c6c1c7ccb6759c33c.tar.gz bcm5719-llvm-25c6a22e4389dc5f40660b7c6c1c7ccb6759c33c.zip |
[omp] Loosen the driver test enough so that overriding the defaults
works well for folks.
This isn't terribly clean (sadly) but after chatting with both Eric and
Richard, nothing cleaner really emerged. The clean way of doing this is
a *lot* of work for extremely little benefit here.
llvm-svn: 238500
Diffstat (limited to 'clang/test/Driver/fopenmp.c')
-rw-r--r-- | clang/test/Driver/fopenmp.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/clang/test/Driver/fopenmp.c b/clang/test/Driver/fopenmp.c index c7eec5fc0c8..36c856d8820 100644 --- a/clang/test/Driver/fopenmp.c +++ b/clang/test/Driver/fopenmp.c @@ -1,4 +1,3 @@ -// RUN: %clang -target x86_64-linux-gnu -fopenmp -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CC1-NO-OPENMP // RUN: %clang -target x86_64-linux-gnu -fopenmp=libomp -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CC1-OPENMP // RUN: %clang -target x86_64-linux-gnu -fopenmp=libgomp -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CC1-NO-OPENMP // RUN: %clang -target x86_64-linux-gnu -fopenmp=libiomp5 -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-CC1-OPENMP @@ -9,7 +8,6 @@ // CHECK-CC1-NO-OPENMP: "-cc1" // CHECK-CC1-NO-OPENMP-NOT: "-fopenmp" // -// RUN: %clang -target x86_64-linux-gnu -fopenmp %s -o %t -### 2>&1 | FileCheck %s --check-prefix=CHECK-LD-GOMP // RUN: %clang -target x86_64-linux-gnu -fopenmp=libomp %s -o %t -### 2>&1 | FileCheck %s --check-prefix=CHECK-LD-OMP // RUN: %clang -target x86_64-linux-gnu -fopenmp=libgomp %s -o %t -### 2>&1 | FileCheck %s --check-prefix=CHECK-LD-GOMP // RUN: %clang -target x86_64-linux-gnu -fopenmp=libiomp5 %s -o %t -### 2>&1 | FileCheck %s --check-prefix=CHECK-LD-IOMP5 @@ -22,3 +20,14 @@ // // CHECK-LD-IOMP5: "{{.*}}ld{{(.exe)?}}" // CHECK-LD-IOMP5: "-liomp5" +// +// We'd like to check that the default is sane, but until we have the ability +// to *always* semantically analyze OpenMP without always generating runtime +// calls (in the event of an unsupported runtime), we don't have a good way to +// test the CC1 invocation. Instead, just ensure we do eventually link *some* +// OpenMP runtime. +// +// RUN: %clang -target x86_64-linux-gnu -fopenmp %s -o %t -### 2>&1 | FileCheck %s --check-prefix=CHECK-LD-ANY +// +// CHECK-LD-ANY: "{{.*}}ld{{(.exe)?}}" +// CHECK-LD-ANY: "-l{{(omp|gomp|iomp5)}}" |