[clang] [llvm] [AArch64] Add support for C2 CPUs (PR #229055)

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 6 03:29:35 PDT 2026


================
@@ -94,6 +94,10 @@
 // C1-PREMIUM: "-cc1"{{.*}} "-triple" "aarch64{{.*}}" "-target-cpu" "c1-premium"
 // RUN: %clang --target=aarch64 -mcpu=c1-ultra -### -c %s 2>&1 | FileCheck -check-prefix=C1-ULTRA %s
 // C1-ULTRA: "-cc1"{{.*}} "-triple" "aarch64{{.*}}" "-target-cpu" "c1-ultra"
+// RUN: %clang --target=aarch64 -mcpu=c2-pro -### -c %s 2>&1 | FileCheck -check-prefix=C2-PRO %s
+// C2-PRO: "-cc1"{{.*}} "-triple" "aarch64{{.*}}" "-target-cpu" "c1-pro"
----------------
dobri01 wrote:

I think it should be c1-pro. "c2-pro" here is defined as an alias for c1-pro, and the driver resolved the alias before passing -target-cpu to cc1. So this would be the same case as "armagicpu" -> neoverse-v3ae.

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


More information about the cfe-commits mailing list