xref: /llvm-project/clang/test/Driver/ppc-prefixed.cpp (revision 9469ff15b77905245e26fe7f166fc127d813a0c0)
1 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -mcpu=pwr10 -mprefixed -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-PREFIXED %s
2 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -mcpu=pwr10 -mno-prefixed -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOPREFIXED %s
3 // CHECK-NOPREFIXED: "-target-feature" "-prefixed"
4 // CHECK-PREFIXED: "-target-feature" "+prefixed"
5 
6 // RUN: %clang -target powerpc64-unknown-linux-gnu -mcpu=pwr10 -emit-llvm -S %s -o - | grep "attributes.*+prefix-instrs"
7 // RUN: %clang -target powerpc64-unknown-linux-gnu -mcpu=pwr10 -mprefixed -emit-llvm -S %s -o - | grep "attributes.*+prefix-instrs"
8 // RUN: %clang -target powerpc64-unknown-linux-gnu -mcpu=pwr10 -mno-prefixed -emit-llvm -S %s -o - | grep "attributes.*\-prefix-instrs"
9 
main(int argc,char * argv[])10 int main(int argc, char *argv[]) {
11   return 0;
12 }
13