commit 2d22cc9f61ea2a721b16417e9b8acfcf32067818 (tree)
parent 5b7eba95bae1a954b7737aec301280cc4a63b677
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Thu, 17 Oct 2024 01:56:22 +0200
std.Target: Use gfx906 as the baseline CPU model for amdgcn.
This matches Clang's default.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/std/Target.zig b/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,