brintos

brintos / llvm-project-archived public Read only

0
0
Text · 618 B · f4f0a16 Raw
16 lines · c
1// RUN: %clang_cc1 -triple powerpc64le -emit-llvm-bc -fopenmp %s \2// RUN:   -fopenmp-targets=powerpc64le,x86_64 -o %t-ppc-host.bc3// 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-only6 7void foo(__ibm128 x); // expected-note {{'foo' defined here}}8 9void loop(int n, __ibm128 *arr) {10#pragma omp target parallel11  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}16