| 1 |
// RUN: %clang_cc1 -triple powerpc64le -emit-llvm-bc -fopenmp %s \ |
| 2 |
// RUN: -fopenmp-targets=powerpc64le,x86_64 -o %t-ppc-host.bc |
| 3 |
// RUN: %clang_cc1 -verify -triple x86_64 -aux-triple powerpc64le -fopenmp \ |
| 4 |
// RUN: -fopenmp-is-target-device -fopenmp-host-ir-file-path %t-ppc-host.bc %s \ |
| 5 |
// RUN: -fsyntax-only |
| 6 |
|
| 7 |
void foo(__ibm128 x); // expected-note {{'foo' defined here}} |
| 8 |
|
| 9 |
void loop(int n, __ibm128 *arr) { |
| 10 |
#pragma omp target parallel |
| 11 |
for (int i = 0; i < n; ++i) { |
| 12 |
// expected-error@+1 {{'foo' requires 128 bit size '__ibm128' type support, but target 'x86_64' does not support it}} |
| 13 |
foo(arr[i]); |
| 14 |
} |
| 15 |
} |