Commit 2d22cc9f61

Alex Rønne Petersen <alex@alexrp.com>
2024-10-17 01:56:22
std.Target: Use gfx906 as the baseline CPU model for amdgcn.
This matches Clang's default.
1 parent 5b7eba9
Changed files (1)
lib
lib/std/Target.zig
@@ -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,