From 5b7eba95bae1a954b7737aec301280cc4a63b677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Thu, 17 Oct 2024 01:54:10 +0200 Subject: [PATCH] std.Target: Use gfx600 as the generic CPU model for amdgcn. This is the first model that was actually in the GCN family. --- lib/std/Target.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/Target.zig b/lib/std/Target.zig index d73612e77b..762778af2b 100644 --- a/lib/std/Target.zig +++ b/lib/std/Target.zig @@ -1797,6 +1797,7 @@ pub const Cpu = struct { }; }; return switch (arch) { + .amdgcn => &amdgpu.cpu.gfx600, .arc => &arc.cpu.generic, .arm, .armeb, .thumb, .thumbeb => &arm.cpu.generic, .aarch64, .aarch64_be => &aarch64.cpu.generic, @@ -1815,7 +1816,6 @@ pub const Cpu = struct { .powerpc64, .powerpc64le => &powerpc.cpu.ppc64, .propeller1 => &propeller.cpu.generic, .propeller2 => &propeller.cpu.generic, - .amdgcn => &amdgpu.cpu.generic, .riscv32 => &riscv.cpu.generic_rv32, .riscv64 => &riscv.cpu.generic_rv64, .spirv, .spirv32, .spirv64 => &spirv.cpu.generic,