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 {...@@ -1797,6 +1797,7 @@ pub const Cpu = struct {
1797 };1797 };
1798 };1798 };
1799 return switch (arch) {1799 return switch (arch) {
1800 .amdgcn => &amdgpu.cpu.gfx600,
1800 .arc => &arc.cpu.generic,1801 .arc => &arc.cpu.generic,
1801 .arm, .armeb, .thumb, .thumbeb => &arm.cpu.generic,1802 .arm, .armeb, .thumb, .thumbeb => &arm.cpu.generic,
1802 .aarch64, .aarch64_be => &aarch64.cpu.generic,1803 .aarch64, .aarch64_be => &aarch64.cpu.generic,
...@@ -1815,7 +1816,6 @@ pub const Cpu = struct {...@@ -1815,7 +1816,6 @@ pub const Cpu = struct {
1815 .powerpc64, .powerpc64le => &powerpc.cpu.ppc64,1816 .powerpc64, .powerpc64le => &powerpc.cpu.ppc64,
1816 .propeller1 => &propeller.cpu.generic,1817 .propeller1 => &propeller.cpu.generic,
1817 .propeller2 => &propeller.cpu.generic,1818 .propeller2 => &propeller.cpu.generic,
1818 .amdgcn => &amdgpu.cpu.generic,
1819 .riscv32 => &riscv.cpu.generic_rv32,1819 .riscv32 => &riscv.cpu.generic_rv32,
1820 .riscv64 => &riscv.cpu.generic_rv64,1820 .riscv64 => &riscv.cpu.generic_rv64,
1821 .spirv, .spirv32, .spirv64 => &spirv.cpu.generic,1821 .spirv, .spirv32, .spirv64 => &spirv.cpu.generic,