authorgravatar for 78876133+IOKG04@users.noreply.github.comRue <78876133+IOKG04@users.noreply.github.com> 2025-08-16 04:36:09+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2025-08-16 02:36:09+00:00
logee85c8b6d05dbda541d4b0b8b402aafad8e582a3
tree0000dc504f13231622a20752c55df4f7f3757e2e
parentd835a6ba9ac11773f8ae1c3b2c5e9241cf875ee9
signaturebadge-check Signed by PGP key B5690EEEBB952194

re-enable std.math.modf vector tests (#24786)

* re-enable std.math.modf vector tests * re-disable std.math.modf vector tests for `aarch64-macos` * re-disable for s390x architecture

1 files changed, 4 insertions(+), 11 deletions(-)

lib/std/math/modf.zig+4-11
...@@ -1,4 +1,5 @@...@@ -1,4 +1,5 @@
1const std = @import("../std.zig");1const std = @import("../std.zig");
2const builtin = @import("builtin");
2const math = std.math;3const math = std.math;
3const expect = std.testing.expect;4const expect = std.testing.expect;
4const expectEqual = std.testing.expectEqual;5const expectEqual = std.testing.expectEqual;
...@@ -84,18 +85,10 @@ fn ModfTests(comptime T: type) type {...@@ -84,18 +85,10 @@ fn ModfTests(comptime T: type) type {
84 try expectApproxEqAbs(expected_c, r.fpart, epsilon);85 try expectApproxEqAbs(expected_c, r.fpart, epsilon);
85 }86 }
86 test "vector" {87 test "vector" {
87 // Currently, a compiler bug is breaking the usage88 if (builtin.os.tag == .macos and builtin.cpu.arch == .aarch64) return error.SkipZigTest;
88 // of @trunc on @Vector types89 if (builtin.cpu.arch == .s390x) return error.SkipZigTest;
8990
90 // TODO: Repopulate the below array and91 const widths = [_]comptime_int{ 1, 2, 3, 4, 8, 16 };
91 // remove the skip statement once this
92 // bug is fixed
93
94 // const widths = [_]comptime_int{ 1, 2, 3, 4, 8, 16 };
95 const widths = [_]comptime_int{};
96
97 if (widths.len == 0)
98 return error.SkipZigTest;
9992
100 inline for (widths) |len| {93 inline for (widths) |len| {
101 const V: type = @Vector(len, T);94 const V: type = @Vector(len, T);