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

This is the first model that was actually in the GCN family.
This commit is contained in:
Alex Rønne Petersen 2024-10-17 01:54:10 +02:00
parent 51dc4b0549
commit 5b7eba95ba
No known key found for this signature in database

View File

@ -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,