[clang] [llvm] Add processor aliases back to -print-supported-cpus and -mcpu=help (PR #118581)

Jon Roelofs via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 3 18:38:55 PST 2024


================
@@ -25,3 +26,12 @@
 // CHECK-ARM: cortex-a73
 // CHECK-ARM: cortex-a75
 // CHECK-ARM: Use -mcpu or -mtune to specify the target's processor.
+
+// RUN: %clang --target=arm64-apple-macosx --print-supported-cpus 2>&1 | \
+// RUN:   FileCheck %s --check-prefix=CHECK-AARCH64 --implicit-check-not=apple-latest
+
+// CHECK-AARCH64: Target: arm64-apple-macosx
+// CHECK-AARCH64: apple-m1
+// CHECK-AARCH64: apple-m2
+// CHECK-AARCH64: apple-m3
+// CHECK-AARCH64: Use -mcpu or -mtune to specify the target's processor.
----------------
jroelofs wrote:

- [ ] FIXME: EOF newline

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


More information about the cfe-commits mailing list