std.Target: Use gfx906 as the baseline CPU model for amdgcn.

This matches Clang's default.
This commit is contained in:
Alex Rønne Petersen 2024-10-17 01:56:22 +02:00
parent 5b7eba95ba
commit 2d22cc9f61
No known key found for this signature in database

View File

@ -1846,6 +1846,7 @@ pub const Cpu = struct {
/// `Os.Tag.freestanding`.
pub fn baseline(arch: Arch, os: Os) *const Model {
return switch (arch) {
.amdgcn => &amdgpu.cpu.gfx906,
.arm, .armeb, .thumb, .thumbeb => &arm.cpu.baseline,
.aarch64 => switch (os.tag) {
.bridgeos, .driverkit, .macos => &aarch64.cpu.apple_m1,