authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-17 01:54:10+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-26 21:59:59+02:00
log5b7eba95bae1a954b7737aec301280cc4a63b677
treeddc63b133be7ca925ee0acb1c840e14b4949e365
parent51dc4b05494e5b6ddf32ce38cca70b1af54b091d
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: Use gfx600 as the generic CPU model for amdgcn.

This is the first model that was actually in the GCN family.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/Target.zig+1-1
......@@ -1797,6 +1797,7 @@ pub const Cpu = struct {
17971797 };
17981798 };
17991799 return switch (arch) {
1800 .amdgcn => &amdgpu.cpu.gfx600,
18001801 .arc => &arc.cpu.generic,
18011802 .arm, .armeb, .thumb, .thumbeb => &arm.cpu.generic,
18021803 .aarch64, .aarch64_be => &aarch64.cpu.generic,
......@@ -1815,7 +1816,6 @@ pub const Cpu = struct {
18151816 .powerpc64, .powerpc64le => &powerpc.cpu.ppc64,
18161817 .propeller1 => &propeller.cpu.generic,
18171818 .propeller2 => &propeller.cpu.generic,
1818 .amdgcn => &amdgpu.cpu.generic,
18191819 .riscv32 => &riscv.cpu.generic_rv32,
18201820 .riscv64 => &riscv.cpu.generic_rv64,
18211821 .spirv, .spirv32, .spirv64 => &spirv.cpu.generic,