From cf2558e97103c0f8412cdf41c4120baa09775086 Mon Sep 17 00:00:00 2001 From: Ryan Liptak Date: Wed, 7 Aug 2024 08:56:50 -0700 Subject: [PATCH] update_cpu_features: Add x86 alias and arm override Before this commit, the name `v9.5a` was being used for two different features, and one was overwriting the other in the `all_features` array. `arrowlake_s` is an alias for `arrowlake-s` --- tools/update_cpu_features.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/update_cpu_features.zig b/tools/update_cpu_features.zig index 6d76fc0eb5..169418ed59 100644 --- a/tools/update_cpu_features.zig +++ b/tools/update_cpu_features.zig @@ -809,6 +809,10 @@ const llvm_targets = [_]LlvmTarget{ .llvm_name = "v9.4a", .zig_name = "has_v9_4a", }, + .{ + .llvm_name = "v9.5a", + .zig_name = "has_v9_5a", + }, }, // LLVM removed support for v2 and v3 but zig wants to support targeting old hardware .extra_features = &.{ @@ -990,6 +994,7 @@ const llvm_targets = [_]LlvmTarget{ "icelake_client", "icelake_server", "graniterapids_d", + "arrowlake_s", }, }, .{