1 // Check that setting an OBJECT_MODE converts the AIX triple to the right variant. 2 // RUN: env OBJECT_MODE=64 \ 3 // RUN: %clang -target powerpc-ibm-aix -print-target-triple | FileCheck -check-prefix=CHECK64 %s 4 5 // RUN: env OBJECT_MODE=32 \ 6 // RUN: %clang -target powerpc64-ibm-aix -print-target-triple | FileCheck -check-prefix=CHECK32 %s 7 8 // Command-line options win. 9 // RUN: env OBJECT_MODE=64 \ 10 // RUN: %clang -target powerpc64-ibm-aix -print-target-triple -m32 | FileCheck -check-prefix=CHECK32 %s 11 12 // RUN: env OBJECT_MODE=32 \ 13 // RUN: %clang -target powerpc-ibm-aix -print-target-triple -m64 | FileCheck -check-prefix=CHECK64 %s 14 15 // CHECK32: powerpc-ibm-aix 16 // CHECK64: powerpc64-ibm-aix 17 18 // Emit a diagnostic if there is an invalid mode. 19 // RUN: env OBJECT_MODE=31 \ 20 // RUN: not %clang -target powerpc-ibm-aix 2>&1 | FileCheck -check-prefix=DIAG %s 21 22 // DIAG: error: OBJECT_MODE setting 31 is not recognized and is not a valid setting. 23