1 // RUN: %clang_cc1 -verify -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc %s -o %t-ppc-host.bc
2 // RUN: %clang_cc1 -verify -fopenmp -x c++ -triple nvptx64-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm %s -fopenmp-is-device -fopenmp-host-ir-file-path %t-ppc-host.bc -o - | FileCheck %s
3 // expected-no-diagnostics
4
5 // CHECK: [[MAP_FN:%.+]] = load void (i8*, ...)*, void (i8*, ...)** %
6 // CHECK: call void (i8*, ...) [[MAP_FN]](i8* %
main()7 int main() {
8 double a, b;
9
10 #pragma omp target map(tofrom \
11 : a) map(to \
12 : b)
13 {
14 #pragma omp taskgroup
15 #pragma omp task shared(a)
16 a = b;
17 }
18 return 0;
19 }
20