1*7cfded35SLei Huang // RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -mcpu=pwr10 -mpcrel -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-PCREL %s
2*7cfded35SLei Huang // RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -mcpu=pwr10 -mno-pcrel -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOPCREL %s
3*7cfded35SLei Huang // CHECK-NOPCREL: "-target-feature" "-pcrel"
4*7cfded35SLei Huang // CHECK-PCREL: "-target-feature" "+pcrel"
5*7cfded35SLei Huang
6*7cfded35SLei Huang // RUN: %clang -target powerpc64-unknown-linux-gnu -mcpu=pwr10 -emit-llvm -S %s -o - | grep "attributes.*+pcrelative-memops"
7*7cfded35SLei Huang // RUN: %clang -target powerpc64-unknown-linux-gnu -mcpu=pwr10 -mpcrel -emit-llvm -S %s -o - | grep "attributes.*+pcrelative-memops"
8*7cfded35SLei Huang // RUN: %clang -target powerpc64-unknown-linux-gnu -mcpu=pwr10 -mno-pcrel -emit-llvm -S %s -o - | grep "attributes.*\-pcrelative-memops"
9*7cfded35SLei Huang
main(int argc,char * argv[])10*7cfded35SLei Huang int main(int argc, char *argv[]) {
11*7cfded35SLei Huang return 0;
12*7cfded35SLei Huang }
13