[clang] [llvm] Add processor aliases back to -print-supported-cpus and -mcpu=help (PR #118581)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 9 05:57:45 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.
----------------
fhahn wrote:
nit: might be worth to move this to a separate file, to not further restrict the configs where this test can be run? might also be good to check for a CPU that't not aliased, e.g. apple-m4?
https://github.com/llvm/llvm-project/pull/118581
More information about the llvm-commits
mailing list