[OpenMP] Disable tests that are not supported by GCC if it is used for testing
authorShilei Tian <i@tianshilei.me>
Tue, 24 Jan 2023 21:59:52 +0000 (16:59 -0500)
committerShilei Tian <i@tianshilei.me>
Tue, 24 Jan 2023 22:00:15 +0000 (17:00 -0500)
commit7e89420116c91647db340a4457b8ad0d60be1d5e
tree4a3259c9bea3f7b921a40bb451f1a1705ed22fe3
parentdef20427b401a839210ff27b34dd31b929fa82ef
[OpenMP] Disable tests that are not supported by GCC if it is used for testing

GCC doesn't support `-fopenmp-version`, causing test failure if the compiler used
for testing is GCC.

GCC's OpenMP 5.2 support is very limited yet. Disable those tests requiring 5.2
feature for GCC as well.

We might want to take a look at all `libomp` tests and mark those tests that
don't support GCC yet.

Reviewed By: ABataev

Differential Revision: https://reviews.llvm.org/D142173
openmp/runtime/test/atomic/omp-atomic-compare-signedness.c
openmp/runtime/test/teams/teams-atomic.c