diff options
Diffstat (limited to 'test/Driver/clang-translation.c')
-rw-r--r-- | test/Driver/clang-translation.c | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/test/Driver/clang-translation.c b/test/Driver/clang-translation.c index 3ddb189e..3b2b7e8 100644 --- a/test/Driver/clang-translation.c +++ b/test/Driver/clang-translation.c @@ -67,6 +67,108 @@ // PPCPWR7: "-target-cpu" "pwr7" // RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=a2q 2>&1 | FileCheck -check-prefix=PPCA2Q %s +// PPCA2Q: clang +// PPCA2Q: "-cc1" +// PPCA2Q: "-target-cpu" "a2q" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=630 2>&1 | FileCheck -check-prefix=PPC630 %s +// PPC630: clang +// PPC630: "-cc1" +// PPC630: "-target-cpu" "pwr3" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=power3 2>&1 | FileCheck -check-prefix=PPCPOWER3 %s +// PPCPOWER3: clang +// PPCPOWER3: "-cc1" +// PPCPOWER3: "-target-cpu" "pwr3" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=pwr3 2>&1 | FileCheck -check-prefix=PPCPWR3 %s +// PPCPWR3: clang +// PPCPWR3: "-cc1" +// PPCPWR3: "-target-cpu" "pwr3" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=power4 2>&1 | FileCheck -check-prefix=PPCPOWER4 %s +// PPCPOWER4: clang +// PPCPOWER4: "-cc1" +// PPCPOWER4: "-target-cpu" "pwr4" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=pwr4 2>&1 | FileCheck -check-prefix=PPCPWR4 %s +// PPCPWR4: clang +// PPCPWR4: "-cc1" +// PPCPWR4: "-target-cpu" "pwr4" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=power5 2>&1 | FileCheck -check-prefix=PPCPOWER5 %s +// PPCPOWER5: clang +// PPCPOWER5: "-cc1" +// PPCPOWER5: "-target-cpu" "pwr5" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=pwr5 2>&1 | FileCheck -check-prefix=PPCPWR5 %s +// PPCPWR5: clang +// PPCPWR5: "-cc1" +// PPCPWR5: "-target-cpu" "pwr5" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=power5x 2>&1 | FileCheck -check-prefix=PPCPOWER5X %s +// PPCPOWER5X: clang +// PPCPOWER5X: "-cc1" +// PPCPOWER5X: "-target-cpu" "pwr5x" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=pwr5x 2>&1 | FileCheck -check-prefix=PPCPWR5X %s +// PPCPWR5X: clang +// PPCPWR5X: "-cc1" +// PPCPWR5X: "-target-cpu" "pwr5x" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=power6 2>&1 | FileCheck -check-prefix=PPCPOWER6 %s +// PPCPOWER6: clang +// PPCPOWER6: "-cc1" +// PPCPOWER6: "-target-cpu" "pwr6" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=pwr6 2>&1 | FileCheck -check-prefix=PPCPWR6 %s +// PPCPWR6: clang +// PPCPWR6: "-cc1" +// PPCPWR6: "-target-cpu" "pwr6" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=power6x 2>&1 | FileCheck -check-prefix=PPCPOWER6X %s +// PPCPOWER6X: clang +// PPCPOWER6X: "-cc1" +// PPCPOWER6X: "-target-cpu" "pwr6x" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=pwr6x 2>&1 | FileCheck -check-prefix=PPCPWR6X %s +// PPCPWR6X: clang +// PPCPWR6X: "-cc1" +// PPCPWR6X: "-target-cpu" "pwr6x" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=power7 2>&1 | FileCheck -check-prefix=PPCPOWER7 %s +// PPCPOWER7: clang +// PPCPOWER7: "-cc1" +// PPCPOWER7: "-target-cpu" "pwr7" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=powerpc 2>&1 | FileCheck -check-prefix=PPCPOWERPC %s +// PPCPOWERPC: clang +// PPCPOWERPC: "-cc1" +// PPCPOWERPC: "-target-cpu" "ppc" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=powerpc64 2>&1 | FileCheck -check-prefix=PPCPOWERPC64 %s +// PPCPOWERPC64: clang +// PPCPOWERPC64: "-cc1" +// PPCPOWERPC64: "-target-cpu" "ppc64" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ // RUN: -### -S %s 2>&1 | FileCheck -check-prefix=PPC64NS %s // PPC64NS: clang // PPC64NS: "-cc1" |