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
This commit is contained in:
Rue 2025-08-16 04:36:09 +02:00 committed by GitHub
parent d835a6ba9a
commit ee85c8b6d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);