[cfe-commits] r164176 - in /cfe/trunk: lib/Basic/Targets.cpp lib/Driver/Tools.cpp test/Driver/clang-translation.c
Hal Finkel
hfinkel at anl.gov
Tue Sep 18 15:25:03 PDT 2012
Author: hfinkel
Date: Tue Sep 18 17:25:03 2012
New Revision: 164176
URL: http://llvm.org/viewvc/llvm-project?rev=164176&view=rev
Log:
Add e500mc and e5500 to the list of valid PPC CPU names.
Patch by Tobias von Koch!
Modified:
cfe/trunk/lib/Basic/Targets.cpp
cfe/trunk/lib/Driver/Tools.cpp
cfe/trunk/test/Driver/clang-translation.c
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=164176&r1=164175&r2=164176&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Tue Sep 18 17:25:03 2012
@@ -641,6 +641,8 @@
.Case("970", true)
.Case("g5", true)
.Case("a2", true)
+ .Case("e500mc", true)
+ .Case("e5500", true)
.Case("pwr6", true)
.Case("pwr7", true)
.Case("ppc", true)
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=164176&r1=164175&r2=164176&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Sep 18 17:25:03 2012
@@ -968,6 +968,8 @@
.Case("970", "970")
.Case("G5", "g5")
.Case("a2", "a2")
+ .Case("e500mc", "e500mc")
+ .Case("e5500", "e5500")
.Case("power6", "pwr6")
.Case("power7", "pwr7")
.Case("powerpc", "ppc")
Modified: cfe/trunk/test/Driver/clang-translation.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/clang-translation.c?rev=164176&r1=164175&r2=164176&view=diff
==============================================================================
--- cfe/trunk/test/Driver/clang-translation.c (original)
+++ cfe/trunk/test/Driver/clang-translation.c Tue Sep 18 17:25:03 2012
@@ -74,3 +74,20 @@
// PPC64NS: clang
// PPC64NS: "-cc1"
// PPC64NS: "-target-cpu" "ppc64"
+
+// RUN: %clang -ccc-clang-archs powerpc \
+// RUN: -target powerpc-fsl-linux -### -S %s 2> %t.log \
+// RUN: -mcpu=e500mc
+// RUN: FileCheck -check-prefix=PPCE500MC %s < %t.log
+// PPCE500MC: clang
+// PPCE500MC: "-cc1"
+// PPCE500MC: "-target-cpu" "e500mc"
+
+// RUN: %clang -ccc-clang-archs powerpc64 \
+// RUN: -target powerpc64-fsl-linux -### -S %s 2> %t.log \
+// RUN: -mcpu=e5500
+// RUN: FileCheck -check-prefix=PPCE5500 %s < %t.log
+// PPCE5500: clang
+// PPCE5500: "-cc1"
+// PPCE5500: "-target-cpu" "e5500"
+
More information about the cfe-commits
mailing list