mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
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:
parent
d835a6ba9a
commit
ee85c8b6d0
1 changed files with 4 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue