diff options
author | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-02-01 20:23:10 +0000 |
---|---|---|
committer | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-02-01 20:23:10 +0000 |
commit | 38378a06dd9e9208e412e330be7db147a023e56d (patch) | |
tree | 2f55ce6be101cdbe066986d6ff45f701157cd6e0 /clang/test/Driver/clang-translation.c | |
parent | 4dca1d3d817e0ea1cfcda8ee8645b0c826035bee (diff) | |
download | bcm5719-llvm-38378a06dd9e9208e412e330be7db147a023e56d.tar.gz bcm5719-llvm-38378a06dd9e9208e412e330be7db147a023e56d.zip |
Add some missing PPC cpus
llvm-svn: 174215
Diffstat (limited to 'clang/test/Driver/clang-translation.c')
-rw-r--r-- | clang/test/Driver/clang-translation.c | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/clang/test/Driver/clang-translation.c b/clang/test/Driver/clang-translation.c index 70103852524..3b2b7e81f91 100644 --- a/clang/test/Driver/clang-translation.c +++ b/clang/test/Driver/clang-translation.c @@ -73,6 +73,102 @@ // 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" |