From abf6f35654533664ccd06d062a54864063032f96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 12 Aug 2024 13:31:21 +0200 Subject: [PATCH 1/3] test: Disable `reinterpret packed union` on mips. https://github.com/ziglang/zig/issues/21050 --- test/behavior/union.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/test/behavior/union.zig b/test/behavior/union.zig index f5cd61f6f4..56ea22f3cc 100644 --- a/test/behavior/union.zig +++ b/test/behavior/union.zig @@ -1904,6 +1904,7 @@ test "reinterpret packed union" { if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO if (builtin.cpu.arch.isPowerPC32()) return error.SkipZigTest; // TODO + if (builtin.cpu.arch.isMIPS()) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/21050 if (builtin.cpu.arch.isWasm()) return error.SkipZigTest; // TODO try S.doTheTest(); } From 19a91084c2a29175bad47d41cd11935904ede0b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 12 Aug 2024 13:32:01 +0200 Subject: [PATCH 2/3] test: Partially disable `vector float operators` on mips. https://github.com/ziglang/zig/issues/21051 --- test/behavior/vector.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/behavior/vector.zig b/test/behavior/vector.zig index 9957395e01..c4e00d9b0c 100644 --- a/test/behavior/vector.zig +++ b/test/behavior/vector.zig @@ -133,6 +133,9 @@ test "vector float operators" { try S.doTheTest(f16); try comptime S.doTheTest(f16); + // https://github.com/llvm/llvm-project/issues/102870 + if (builtin.cpu.arch.isMIPS()) return error.SkipZigTest; + try S.doTheTest(f80); try comptime S.doTheTest(f80); From 46f64358dd731ad35afe11a6a45df1ad78e6531a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 12 Aug 2024 07:27:35 +0200 Subject: [PATCH 3/3] test: Re-enable mips(el)-linux(-musl) tests. Closes #13782. Closes #16846. --- test/tests.zig | 64 +++++++++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 34 deletions(-) diff --git a/test/tests.zig b/test/tests.zig index e56164366d..b80017d915 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -305,24 +305,22 @@ const test_targets = blk: { // .link_libc = true, //}, - // https://github.com/ziglang/zig/issues/16846 - //.{ - // .target = .{ - // .cpu_arch = .mips, - // .os_tag = .linux, - // .abi = .none, - // }, - //}, + .{ + .target = .{ + .cpu_arch = .mips, + .os_tag = .linux, + .abi = .none, + }, + }, - // https://github.com/ziglang/zig/issues/16846 - //.{ - // .target = .{ - // .cpu_arch = .mips, - // .os_tag = .linux, - // .abi = .musl, - // }, - // .link_libc = true, - //}, + .{ + .target = .{ + .cpu_arch = .mips, + .os_tag = .linux, + .abi = .musl, + }, + .link_libc = true, + }, // https://github.com/ziglang/zig/issues/4927 //.{ @@ -334,24 +332,22 @@ const test_targets = blk: { // .link_libc = true, //}, - // https://github.com/ziglang/zig/issues/16846 - //.{ - // .target = .{ - // .cpu_arch = .mipsel, - // .os_tag = .linux, - // .abi = .none, - // }, - //}, + .{ + .target = .{ + .cpu_arch = .mipsel, + .os_tag = .linux, + .abi = .none, + }, + }, - // https://github.com/ziglang/zig/issues/16846 - //.{ - // .target = .{ - // .cpu_arch = .mipsel, - // .os_tag = .linux, - // .abi = .musl, - // }, - // .link_libc = true, - //}, + .{ + .target = .{ + .cpu_arch = .mipsel, + .os_tag = .linux, + .abi = .musl, + }, + .link_libc = true, + }, // https://github.com/ziglang/zig/issues/4927 //.{