mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 03:25:54 -04:00
[OpenMP][Tool] archer tests require tsan
Testing for tsan capability in the test-compiler in follow-up review
This commit is contained in:
parent
9e6aa81588
commit
77ad98c808
@ -2,11 +2,6 @@
|
|||||||
include(CheckFunctionExists)
|
include(CheckFunctionExists)
|
||||||
include(CheckLibraryExists)
|
include(CheckLibraryExists)
|
||||||
|
|
||||||
if (OPENMP_STANDALONE_BUILD)
|
|
||||||
return ()
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
|
|
||||||
# When using libgcc, -latomic may be needed for atomics
|
# When using libgcc, -latomic may be needed for atomics
|
||||||
# (but when using compiler-rt, the atomics will be built-in)
|
# (but when using compiler-rt, the atomics will be built-in)
|
||||||
# Note: we can not check for __atomic_load because clang treats it
|
# Note: we can not check for __atomic_load because clang treats it
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run | FileCheck %s
|
// RUN: %libarcher-compile-and-run | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run | FileCheck %s
|
// RUN: %libarcher-compile-and-run | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run | FileCheck %s
|
// RUN: %libarcher-compile-and-run | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run | FileCheck %s
|
// RUN: %libarcher-compile-and-run | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run | FileCheck %s
|
// RUN: %libarcher-compile-and-run | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run | FileCheck %s
|
// RUN: %libarcher-compile-and-run | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run | FileCheck %s
|
// RUN: %libarcher-compile-and-run | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run-race | FileCheck %s
|
// RUN: %libarcher-compile-and-run-race | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run-race | FileCheck %s
|
// RUN: %libarcher-compile-and-run-race | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run-race | FileCheck %s
|
// RUN: %libarcher-compile-and-run-race | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run-race | FileCheck %s
|
// RUN: %libarcher-compile-and-run-race | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run-race | FileCheck %s
|
// RUN: %libarcher-compile-and-run-race | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run-race | FileCheck %s
|
// RUN: %libarcher-compile-and-run-race | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run-race | FileCheck %s
|
// RUN: %libarcher-compile-and-run-race | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run-race | FileCheck %s
|
// RUN: %libarcher-compile-and-run-race | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run | FileCheck %s
|
// RUN: %libarcher-compile-and-run | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run| FileCheck %s
|
// RUN: %libarcher-compile-and-run| FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run | FileCheck %s
|
// RUN: %libarcher-compile-and-run | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run | FileCheck %s
|
// RUN: %libarcher-compile-and-run | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run | FileCheck %s
|
// RUN: %libarcher-compile-and-run | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run | FileCheck %s
|
// RUN: %libarcher-compile-and-run | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run | FileCheck %s
|
// RUN: %libarcher-compile-and-run | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run | FileCheck %s
|
// RUN: %libarcher-compile-and-run | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run | FileCheck %s
|
// RUN: %libarcher-compile-and-run | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// RUN: %libarcher-compile-and-run | FileCheck %s
|
// RUN: %libarcher-compile-and-run | FileCheck %s
|
||||||
|
// REQUIRES: tsan
|
||||||
#include <omp.h>
|
#include <omp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user