[Flang][OpenMP] Use internal linkage for OpenMP code-gen'ed helper functions (#117911)
[llvm-project.git] / clang / test / Driver / ppc-pcrel.cpp
blob2b12f0de9280e7fbcd8327cd08abb89723259ef8
1 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -mcpu=pwr10 -mpcrel -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-PCREL %s
2 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -mcpu=pwr10 -mno-pcrel -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOPCREL %s
3 // CHECK-NOPCREL: "-target-feature" "-pcrel"
4 // CHECK-PCREL: "-target-feature" "+pcrel"
6 // RUN: %clang -target powerpc64-unknown-linux-gnu -mcpu=pwr10 -emit-llvm -S %s -o - | grep "attributes.*+pcrelative-memops"
7 // RUN: %clang -target powerpc64-unknown-linux-gnu -mcpu=pwr10 -mpcrel -emit-llvm -S %s -o - | grep "attributes.*+pcrelative-memops"
8 // RUN: %clang -target powerpc64-unknown-linux-gnu -mcpu=pwr10 -mno-pcrel -emit-llvm -S %s -o - | grep "attributes.*\-pcrelative-memops"
10 int main(int argc, char *argv[]) {
11 return 0;