From 6a43c00ebd7086d9e4fe971063120487ee8905a2 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Thu, 10 Sep 2015 12:06:58 +0000 Subject: [OPENMP] Generate threadprivates as TLS variables by default. If target supports TLS all threadprivates are generated as TLS. If target does not support TLS, use runtime calls for proper codegen of threadprivate variables. llvm-svn: 247273 --- clang/test/OpenMP/driver.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 clang/test/OpenMP/driver.c (limited to 'clang/test') diff --git a/clang/test/OpenMP/driver.c b/clang/test/OpenMP/driver.c new file mode 100644 index 00000000000..f84541bef8b --- /dev/null +++ b/clang/test/OpenMP/driver.c @@ -0,0 +1,10 @@ +// Test that by default -fnoopenmp-use-tls is passed to frontend. +// +// RUN: %clang %s -### -o %t.o 2>&1 -fopenmp=libomp | FileCheck --check-prefix=CHECK-DEFAULT %s +// CHECK-DEFAULT: -cc1 +// CHECK-DEFAULT-NOT: -fnoopenmp-use-tls +// +// RUN: %clang %s -### -o %t.o 2>&1 -fopenmp=libomp -fnoopenmp-use-tls | FileCheck --check-prefix=CHECK-NO-TLS %s +// CHECK-NO-TLS: -cc1 +// CHECK-NO-TLS-SAME: -fnoopenmp-use-tls +// -- cgit v1.2.3