[clang] [llvm] [PowerPC] add TargetParser for PPC target (PR #97541)

David Tenty via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 3 08:36:17 PDT 2024


================
@@ -85,8 +85,59 @@
 #define AIX_PPC9_VALUE 0x00020000
 #define AIX_PPC10_VALUE 0x00040000
 
-// __builtin_cpu_is() and __builtin_cpu_supports() are supported only on Power7 and up on AIX.
 // PPC_CPU(Name, Linux_SUPPORT_METHOD, LinuxID, AIX_SUPPORT_METHOD, AIXID)
+
+// Valid CPUs not supported by __builtin_cpu_is()
+PPC_CPU("generic",BUILTIN_PPC_FALSE,0,BUILTIN_PPC_FALSE,0)
+PPC_CPU("440",SYS_CALL,42,BUILTIN_PPC_FALSE,0)
----------------
daltenty wrote:

nit: I feel like we should be adding new test cases for these linux cases we support now, but I also can't find any test cases to cover the existing linux ones...

https://github.com/llvm/llvm-project/pull/97541


More information about the cfe-commits mailing list