authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-26 08:47:02+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-26 21:22:31+02:00
logfc56124fac85355124723e369d466adaa4b6ce55
tree31be92a0289eb9aee05922ffd4f04b07b668ac1c
parentc47c05386eab5982b0fb20aa58ab80e202e97393
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std: re-enable some tests on s390x

closes https://github.com/ziglang/zig/issues/25957

3 files changed, 2 insertions(+), 11 deletions(-)

lib/std/crypto/ml_kem.zig-9
......@@ -1456,8 +1456,6 @@ fn randPolyNormalized(rnd: anytype) Poly {
14561456}
14571457
14581458test "MulHat" {
1459 if (comptime builtin.cpu.has(.s390x, .vector)) return error.SkipZigTest;
1460
14611459 var rnd = RndGen.init(0);
14621460
14631461 for (0..100) |_| {
......@@ -1612,8 +1610,6 @@ test "Polynomial packing" {
16121610}
16131611
16141612test "Test inner PKE" {
1615 if (comptime builtin.cpu.has(.s390x, .vector)) return error.SkipZigTest;
1616
16171613 var seed: [32]u8 = undefined;
16181614 var pt: [32]u8 = undefined;
16191615 for (&seed, &pt, 0..) |*s, *p, i| {
......@@ -1635,8 +1631,6 @@ test "Test inner PKE" {
16351631}
16361632
16371633test "Test happy flow" {
1638 if (comptime builtin.cpu.has(.s390x, .vector)) return error.SkipZigTest;
1639
16401634 var seed: [64]u8 = undefined;
16411635 for (&seed, 0..) |*s, i| {
16421636 s.* = @as(u8, @intCast(i));
......@@ -1662,21 +1656,18 @@ test "Test happy flow" {
16621656
16631657test "NIST KAT test d00.Kyber512" {
16641658 if (comptime builtin.cpu.has(.loongarch, .lsx)) return error.SkipZigTest;
1665 if (comptime builtin.cpu.has(.s390x, .vector)) return error.SkipZigTest;
16661659
16671660 try testNistKat(d00.Kyber512, "e9c2bd37133fcb40772f81559f14b1f58dccd1c816701be9ba6214d43baf4547");
16681661}
16691662
16701663test "NIST KAT test d00.Kyber1024" {
16711664 if (comptime builtin.cpu.has(.loongarch, .lsx)) return error.SkipZigTest;
1672 if (comptime builtin.cpu.has(.s390x, .vector)) return error.SkipZigTest;
16731665
16741666 try testNistKat(d00.Kyber1024, "89248f2f33f7f4f7051729111f3049c409a933ec904aedadf035f30fa5646cd5");
16751667}
16761668
16771669test "NIST KAT test d00.Kyber768" {
16781670 if (comptime builtin.cpu.has(.loongarch, .lsx)) return error.SkipZigTest;
1679 if (comptime builtin.cpu.has(.s390x, .vector)) return error.SkipZigTest;
16801671
16811672 try testNistKat(d00.Kyber768, "a1e122cad3c24bc51622e4c242d8b8acbcd3f618fee4220400605ca8f9ea02c2");
16821673}
lib/std/math/modf.zig+1-1
......@@ -86,7 +86,7 @@ fn ModfTests(comptime T: type) type {
8686 }
8787 test "vector" {
8888 if (builtin.os.tag.isDarwin() and builtin.cpu.arch == .aarch64) return error.SkipZigTest;
89 if (builtin.cpu.arch == .s390x) return error.SkipZigTest;
89 if (builtin.cpu.arch == .s390x) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/194256
9090
9191 const widths = [_]comptime_int{ 1, 2, 3, 4, 8, 16 };
9292
lib/std/zon/parse.zig+1-1
......@@ -3129,7 +3129,7 @@ test "std.zon free on error" {
31293129
31303130test "std.zon vector" {
31313131 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/15330
3132 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .s390x) return error.SkipZigTest; // github.com/ziglang/zig/issues/25957
3132 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .s390x) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/25957
31333133
31343134 const gpa = std.testing.allocator;
31353135