
This patch fuses the RUN lines for most libomptarget tests. The previous patch D101315 created separate test targets for each supported offloading triple. This patch updates the RUN lines in libomptarget tests to use a generic run line independent of the offloading target selected for the lit instance. In cases, where no RUN line was defined for a specific offloading target, the corresponding target is declared as XFAIL. If it turns out that a test actually supports the target, the XFAIL line can be removed. Differential Revision: https://reviews.llvm.org/D101326
16 lines
639 B
C
16 lines
639 B
C
// RUN: %libomptarget-compile-generic
|
|
// RUN: %libomptarget-run-fail-generic 2>&1 \
|
|
// RUN: | %fcheck-generic
|
|
|
|
// CHECK: Libomptarget message: explicit extension not allowed: host address specified is 0x{{.*}} (8 bytes), but device allocation maps to host at 0x{{.*}} (8 bytes)
|
|
// CHECK: Libomptarget error: Call to getOrAllocTgtPtr returned null pointer (device failure or illegal mapping).
|
|
// CHECK: Libomptarget fatal error 1: failure of target construct while offloading is mandatory
|
|
|
|
int main() {
|
|
int arr[4] = {0, 1, 2, 3};
|
|
#pragma omp target data map(alloc: arr[0:2])
|
|
#pragma omp target data map(alloc: arr[1:2])
|
|
;
|
|
return 0;
|
|
}
|