================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits