1 // Check passing PowerPC ABI options to the backend. 2 3 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -o %t.o 2>&1 \ 4 // RUN: | FileCheck -check-prefix=CHECK-ELFv1 %s 5 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -o %t.o 2>&1 \ 6 // RUN: -mabi=elfv1 | FileCheck -check-prefix=CHECK-ELFv1 %s 7 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -o %t.o 2>&1 \ 8 // RUN: -mabi=elfv1-qpx | FileCheck -check-prefix=CHECK-ELFv1-QPX %s 9 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -o %t.o 2>&1 \ 10 // RUN: -mcpu=a2q | FileCheck -check-prefix=CHECK-ELFv1-QPX %s 11 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -o %t.o 2>&1 \ 12 // RUN: -mcpu=a2 -mqpx | FileCheck -check-prefix=CHECK-ELFv1-QPX %s 13 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -o %t.o 2>&1 \ 14 // RUN: -mcpu=a2q -mno-qpx | FileCheck -check-prefix=CHECK-ELFv1 %s 15 // RUN: %clang -target powerpc64-unknown-linux-gnu %s -### -o %t.o 2>&1 \ 16 // RUN: -mabi=elfv2 | FileCheck -check-prefix=CHECK-ELFv2 %s 17 18 // RUN: %clang -target powerpc64le-unknown-linux-gnu %s -### -o %t.o 2>&1 \ 19 // RUN: | FileCheck -check-prefix=CHECK-ELFv2 %s 20 // RUN: %clang -target powerpc64le-unknown-linux-gnu %s -### -o %t.o 2>&1 \ 21 // RUN: -mabi=elfv1 | FileCheck -check-prefix=CHECK-ELFv1 %s 22 // RUN: %clang -target powerpc64le-unknown-linux-gnu %s -### -o %t.o 2>&1 \ 23 // RUN: -mabi=elfv2 | FileCheck -check-prefix=CHECK-ELFv2 %s 24 // RUN: %clang -target powerpc64le-unknown-linux-gnu %s -### -o %t.o 2>&1 \ 25 // RUN: -mabi=altivec | FileCheck -check-prefix=CHECK-ELFv2 %s 26 27 // CHECK-ELFv1: "-target-abi" "elfv1" 28 // CHECK-ELFv1-QPX: "-target-abi" "elfv1-qpx" 29 // CHECK-ELFv2: "-target-abi" "elfv2" 30 31