authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-22 18:41:09+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-22 18:41:09+02:00
log56bfed9e3a90b24418cfd0e60ac3f88a6e342220
tree7948398dd86691dd9ef15ab374d743e84d55b5b4
parentd569c77b4746e992ea008f2bda921562d311bf7b
parent038c0783d4dd11d6a79c6d5aa750f1c755847671
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

Merge branch 'update-baseline-cpus'


2 files changed, 22 insertions(+), 6 deletions(-)

lib/std/Target.zig+22-5
......@@ -2046,6 +2046,7 @@ pub const Cpu = struct {
20462046 },
20472047 .armeb, .thumbeb => &arm.cpu.baseline,
20482048 .aarch64 => switch (os.tag) {
2049 .haiku => &aarch64.cpu.cortex_a55,
20492050 .driverkit, .maccatalyst, .macos => &aarch64.cpu.apple_m1,
20502051 .ios, .tvos => &aarch64.cpu.apple_a7,
20512052 .visionos => &aarch64.cpu.apple_m2,
......@@ -2061,21 +2062,36 @@ pub const Cpu = struct {
20612062 .lanai => &lanai.cpu.v11, // clang does not have a generic lanai model.
20622063 .loongarch32 => &loongarch.cpu.la32v1_0,
20632064 .loongarch64 => &loongarch.cpu.la64v1_0,
2064 .m68k => &m68k.cpu.M68000,
2065 .m68k => &m68k.cpu.M68030,
20652066 .mips => &mips.cpu.mips32r2,
20662067 .mipsel => switch (os.tag) {
20672068 .psp => &mips.cpu.allegrex,
20682069 else => &mips.cpu.mips32r2,
20692070 },
2070 .mips64, .mips64el => &mips.cpu.mips64r2,
2071 .mips64 => switch (os.tag) {
2072 .openbsd => &mips.cpu.octeon,
2073 else => &mips.cpu.mips64r2,
2074 },
2075 .mips64el => &mips.cpu.mips64r2,
20712076 .msp430 => &msp430.cpu.msp430,
20722077 .nvptx, .nvptx64 => &nvptx.cpu.sm_52,
2078 .powerpc => switch (os.tag) {
2079 .openbsd => &powerpc.cpu.@"750",
2080 else => generic(arch),
2081 },
2082 .powerpc64 => switch (os.tag) {
2083 .openbsd => &powerpc.cpu.pwr9,
2084 else => generic(arch),
2085 },
20732086 .powerpc64le => &powerpc.cpu.ppc64le,
20742087 .riscv32, .riscv32be => &riscv.cpu.baseline_rv32,
20752088 .riscv64, .riscv64be => &riscv.cpu.baseline_rv64,
2076 // gcc/clang do not have a generic s390x model.
2077 .s390x => &s390x.cpu.arch8,
2078 .sparc => &sparc.cpu.v9, // glibc does not work with 'plain' v8.
2089 .s390x => &s390x.cpu.arch11,
2090 .sparc => switch (os.tag) {
2091 .linux => &sparc.cpu.v9, // glibc does not work with 'plain' v8.
2092 else => generic(arch),
2093 },
2094 .sparc64 => &sparc.cpu.ultrasparc,
20792095 .x86 => &x86.cpu.pentium4,
20802096 .x86_64 => switch (os.tag) {
20812097 .driverkit, .maccatalyst => &x86.cpu.nehalem,
......@@ -2085,6 +2101,7 @@ pub const Cpu = struct {
20852101 else => generic(arch),
20862102 },
20872103 .xcore => &xcore.cpu.xs1b_generic,
2104 .xtensa => &xtensa.cpu.esp32,
20882105 .wasm32, .wasm64 => &wasm.cpu.lime1,
20892106
20902107 else => generic(arch),
test/llvm_targets.zig-1
......@@ -53,7 +53,6 @@ const targets = [_]std.Target.Query{
5353 .{ .cpu_arch = .arm, .os_tag = .freestanding, .abi = .eabi },
5454 .{ .cpu_arch = .arm, .os_tag = .freestanding, .abi = .eabihf },
5555 .{ .cpu_arch = .arm, .os_tag = .fuchsia, .abi = .eabihf },
56 .{ .cpu_arch = .arm, .os_tag = .haiku, .abi = .eabi },
5756 .{ .cpu_arch = .arm, .os_tag = .haiku, .abi = .eabihf },
5857 .{ .cpu_arch = .arm, .os_tag = .linux, .abi = .androideabi },
5958 .{ .cpu_arch = .arm, .os_tag = .linux, .abi = .eabi },