diff --git a/lib/std/math/modf.zig b/lib/std/math/modf.zig index dda34454e3..870b4e6f6b 100644 --- a/lib/std/math/modf.zig +++ b/lib/std/math/modf.zig @@ -1,4 +1,5 @@ const std = @import("../std.zig"); +const builtin = @import("builtin"); const math = std.math; const expect = std.testing.expect; const expectEqual = std.testing.expectEqual; @@ -84,18 +85,10 @@ fn ModfTests(comptime T: type) type { try expectApproxEqAbs(expected_c, r.fpart, epsilon); } test "vector" { - // Currently, a compiler bug is breaking the usage - // of @trunc on @Vector types + if (builtin.os.tag == .macos and builtin.cpu.arch == .aarch64) return error.SkipZigTest; + if (builtin.cpu.arch == .s390x) return error.SkipZigTest; - // TODO: Repopulate the below array and - // remove the skip statement once this - // bug is fixed - - // const widths = [_]comptime_int{ 1, 2, 3, 4, 8, 16 }; - const widths = [_]comptime_int{}; - - if (widths.len == 0) - return error.SkipZigTest; + const widths = [_]comptime_int{ 1, 2, 3, 4, 8, 16 }; inline for (widths) |len| { const V: type = @Vector(len, T);