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

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

This matches Clang's default.

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

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