diff --git a/openmp/libomptarget/test/api/omp_device_managed_memory_alloc.c b/openmp/libomptarget/test/api/omp_device_managed_memory_alloc.c --- a/openmp/libomptarget/test/api/omp_device_managed_memory_alloc.c +++ b/openmp/libomptarget/test/api/omp_device_managed_memory_alloc.c @@ -1,5 +1,5 @@ -// RUN: %libomptarget-compile-run-and-check-nvptx64-nvidia-cuda -// REQUIRES: nvptx64-nvidia-cuda +// RUN: %libomptarget-compile-run-and-check-generic +// RUN: %libomptarget-compileopt-run-and-check-generic #include #include diff --git a/openmp/libomptarget/test/api/omp_dynamic_shared_memory.c b/openmp/libomptarget/test/api/omp_dynamic_shared_memory.c --- a/openmp/libomptarget/test/api/omp_dynamic_shared_memory.c +++ b/openmp/libomptarget/test/api/omp_dynamic_shared_memory.c @@ -1,7 +1,13 @@ -// RUN: %libomptarget-compile-nvptx64-nvidia-cuda +// RUN: %libomptarget-compile-generic // RUN: env LIBOMPTARGET_SHARED_MEMORY_SIZE=256 \ -// RUN: %libomptarget-run-nvptx64-nvidia-cuda | %fcheck-nvptx64-nvidia-cuda -// REQUIRES: nvptx64-nvidia-cuda +// RUN: %libomptarget-run-generic | %fcheck-generic + +// RUN: %libomptarget-compileopt-generic +// RUN: env LIBOMPTARGET_SHARED_MEMORY_SIZE=256 \ +// RUN: %libomptarget-run-generic | %fcheck-generic + +// UNSUPPORTED: x86_64-pc-linux-gnu +// UNSUPPORTED: x86_64-pc-linux-gnu-LTO #include #include diff --git a/openmp/libomptarget/test/mapping/lambda_mapping.cpp b/openmp/libomptarget/test/mapping/lambda_mapping.cpp --- a/openmp/libomptarget/test/mapping/lambda_mapping.cpp +++ b/openmp/libomptarget/test/mapping/lambda_mapping.cpp @@ -1,7 +1,8 @@ -// RUN: %libomptarget-compilexx-run-and-check-generic - -// Error on the gpu that crashes the host -// UNSUPPORTED: amdgcn-amd-amdhsa +// On AMDGPU we don't have malloc support yet. We need optimizations +// to avoid a thread state which requires malloc. +// +// XUN: %libomptarget-compilexx-run-and-check-generic +// RUN: %libomptarget-compileoptxx-run-and-check-generic #include diff --git a/openmp/libomptarget/test/offloading/assert.cpp b/openmp/libomptarget/test/offloading/assert.cpp --- a/openmp/libomptarget/test/offloading/assert.cpp +++ b/openmp/libomptarget/test/offloading/assert.cpp @@ -1,5 +1,5 @@ -// RUN: %libomptarget-compilexx-nvptx64-nvidia-cuda && %libomptarget-run-fail-nvptx64-nvidia-cuda -// REQUIRES: nvptx64-nvidia-cuda +// RUN: %libomptarget-compilexx-generic && %libomptarget-run-fail-generic +// RUN: %libomptarget-compileoptxx-generic && %libomptarget-run-fail-generic int main(int argc, char *argv[]) { #pragma omp target diff --git a/openmp/libomptarget/test/offloading/barrier_fence.c b/openmp/libomptarget/test/offloading/barrier_fence.c --- a/openmp/libomptarget/test/offloading/barrier_fence.c +++ b/openmp/libomptarget/test/offloading/barrier_fence.c @@ -1,5 +1,7 @@ // RUN: %libomptarget-compile-generic -fopenmp-offload-mandatory -O3 // RUN: %libomptarget-run-generic +// RUN: %libomptarget-compileopt-generic -fopenmp-offload-mandatory -O3 +// RUN: %libomptarget-run-generic // UNSUPPORTED: aarch64-unknown-linux-gnu // UNSUPPORTED: aarch64-unknown-linux-gnu-LTO diff --git a/openmp/libomptarget/test/offloading/bug47654.cpp b/openmp/libomptarget/test/offloading/bug47654.cpp --- a/openmp/libomptarget/test/offloading/bug47654.cpp +++ b/openmp/libomptarget/test/offloading/bug47654.cpp @@ -1,4 +1,5 @@ // RUN: %libomptarget-compilexx-run-and-check-generic +// RUN: %libomptarget-compileoptxx-run-and-check-generic #include #include diff --git a/openmp/libomptarget/test/offloading/bug49021.cpp b/openmp/libomptarget/test/offloading/bug49021.cpp --- a/openmp/libomptarget/test/offloading/bug49021.cpp +++ b/openmp/libomptarget/test/offloading/bug49021.cpp @@ -1,5 +1,7 @@ // RUN: %libomptarget-compilexx-generic -O3 && %libomptarget-run-generic // RUN: %libomptarget-compilexx-generic -O3 -ffast-math && %libomptarget-run-generic +// RUN: %libomptarget-compileoptxx-generic -O3 && %libomptarget-run-generic +// RUN: %libomptarget-compileoptxx-generic -O3 -ffast-math && %libomptarget-run-generic #include diff --git a/openmp/libomptarget/test/offloading/bug49334.cpp b/openmp/libomptarget/test/offloading/bug49334.cpp --- a/openmp/libomptarget/test/offloading/bug49334.cpp +++ b/openmp/libomptarget/test/offloading/bug49334.cpp @@ -1,8 +1,12 @@ -// The test is disabled for now because of the flaky failure which can cause -// Buildbot gives false negative results. - -// RUN: nothing -// REQUIRES: testToBeFixed +// RUN: %libomptarget-compilexx-generic -O3 && %libomptarget-run-generic +// RUN: %libomptarget-compilexx-generic -O3 -ffast-math && \ +// RUN: %libomptarget-run-generic +// RUN: %libomptarget-compileoptxx-generic -O3 && %libomptarget-run-generic +// RUN: %libomptarget-compileoptxx-generic -O3 -ffast-math && \ +// RUN: %libomptarget-run-generic + +// UNSUPPORTED: x86_64-pc-linux-gnu +// UNSUPPORTED: x86_64-pc-linux-gnu-LTO #include #include diff --git a/openmp/libomptarget/test/offloading/bug49779.cpp b/openmp/libomptarget/test/offloading/bug49779.cpp --- a/openmp/libomptarget/test/offloading/bug49779.cpp +++ b/openmp/libomptarget/test/offloading/bug49779.cpp @@ -1,6 +1,9 @@ // RUN: %libomptarget-compilexx-generic && \ // RUN: env LIBOMPTARGET_STACK_SIZE=2048 %libomptarget-run-generic +// RUN: %libomptarget-compileoptxx-generic && \ +// RUN: env LIBOMPTARGET_STACK_SIZE=2048 %libomptarget-run-generic +// We need malloc/global_alloc support // UNSUPPORTED: amdgcn-amd-amdhsa #include diff --git a/openmp/libomptarget/test/offloading/bug50022.cpp b/openmp/libomptarget/test/offloading/bug50022.cpp --- a/openmp/libomptarget/test/offloading/bug50022.cpp +++ b/openmp/libomptarget/test/offloading/bug50022.cpp @@ -1,4 +1,5 @@ // RUN: %libomptarget-compilexx-and-run-generic +// RUN: %libomptarget-compileoptxx-and-run-generic #include #include diff --git a/openmp/libomptarget/test/offloading/bug51982.c b/openmp/libomptarget/test/offloading/bug51982.c --- a/openmp/libomptarget/test/offloading/bug51982.c +++ b/openmp/libomptarget/test/offloading/bug51982.c @@ -1,5 +1,6 @@ // RUN: %libomptarget-compile-generic -O1 && %libomptarget-run-generic // -O1 to run openmp-opt +// RUN: %libomptarget-compileopt-generic -O1 && %libomptarget-run-generic int main(void) { long int aa = 0; diff --git a/openmp/libomptarget/test/offloading/bug53727.cpp b/openmp/libomptarget/test/offloading/bug53727.cpp --- a/openmp/libomptarget/test/offloading/bug53727.cpp +++ b/openmp/libomptarget/test/offloading/bug53727.cpp @@ -1,4 +1,5 @@ // RUN: %libomptarget-compilexx-and-run-generic +// RUN: %libomptarget-compileoptxx-and-run-generic #include #include diff --git a/openmp/libomptarget/test/offloading/d2d_memcpy.c b/openmp/libomptarget/test/offloading/d2d_memcpy.c --- a/openmp/libomptarget/test/offloading/d2d_memcpy.c +++ b/openmp/libomptarget/test/offloading/d2d_memcpy.c @@ -1,4 +1,9 @@ -// RUN: %libomptarget-compile-generic && env OMP_MAX_ACTIVE_LEVELS=2 %libomptarget-run-generic | %fcheck-generic -allow-empty +// RUN: %libomptarget-compile-generic && \ +// RUN: env OMP_MAX_ACTIVE_LEVELS=2 %libomptarget-run-generic | \ +// RUN: %fcheck-generic -allow-empty +// RUN: %libomptarget-compileopt-generic && \ +// RUN: env OMP_MAX_ACTIVE_LEVELS=2 %libomptarget-run-generic | \ +// RUN: %fcheck-generic -allow-empty #include #include diff --git a/openmp/libomptarget/test/offloading/dynamic_module.c b/openmp/libomptarget/test/offloading/dynamic_module.c --- a/openmp/libomptarget/test/offloading/dynamic_module.c +++ b/openmp/libomptarget/test/offloading/dynamic_module.c @@ -1,4 +1,7 @@ -// RUN: %libomptarget-compile-generic -DSHARED -fPIC -shared -o %t.so && %libomptarget-compile-generic %t.so && %libomptarget-run-generic 2>&1 | %fcheck-generic +// RUN: %libomptarget-compile-generic -DSHARED -fPIC -shared -o %t.so && \ +// RUN: %libomptarget-compile-generic %t.so && %libomptarget-run-generic 2>&1 | %fcheck-generic +// RUN: %libomptarget-compileopt-generic -DSHARED -fPIC -shared -o %t.so && \ +// RUN: %libomptarget-compileopt-generic %t.so && %libomptarget-run-generic 2>&1 | %fcheck-generic #ifdef SHARED void foo() {} diff --git a/openmp/libomptarget/test/offloading/target_nowait_target.cpp b/openmp/libomptarget/test/offloading/target_nowait_target.cpp --- a/openmp/libomptarget/test/offloading/target_nowait_target.cpp +++ b/openmp/libomptarget/test/offloading/target_nowait_target.cpp @@ -1,6 +1,5 @@ // RUN: %libomptarget-compilexx-and-run-generic - -// UNSUPPORTED: amdgcn-amd-amdhsa +// RUN: %libomptarget-compileoptxx-and-run-generic #include