1 // RUN: %libomptarget-compile-amdgcn-amd-amdhsa -O1 -mllvm -openmp-opt-inline-device
2 // RUN: env LIBOMPTARGET_SHARED_MEMORY_SIZE=256 \
3 // RUN: %libomptarget-run-amdgcn-amd-amdhsa | %fcheck-amdgcn-amd-amdhsa
4 // REQUIRES: amdgcn-amd-amdhsa
5 // XFAIL: amdgcn-amd-amdhsa
12 #pragma omp target parallel map(from : x)
14 int *buf
= llvm_omp_target_dynamic_shared_alloc() + 252;
16 if (omp_get_thread_num() == 0)
19 if (omp_get_thread_num() == 1)
24 if (x
== 1 && llvm_omp_target_dynamic_shared_alloc() == NULL
)