| ... | @@ -1,4 +1,5 @@ | ... | @@ -1,4 +1,5 @@ |
| 1 | const std = @import("../std.zig"); | 1 | const std = @import("../std.zig"); |
| | 2 | const builtin = @import("builtin"); |
| 2 | const math = std.math; | 3 | const math = std.math; |
| 3 | const expect = std.testing.expect; | 4 | const expect = std.testing.expect; |
| 4 | const expectEqual = std.testing.expectEqual; | 5 | const 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 usage | 88 | if (builtin.os.tag == .macos and builtin.cpu.arch == .aarch64) return error.SkipZigTest; |
| 88 | // of @trunc on @Vector types | 89 | if (builtin.cpu.arch == .s390x) return error.SkipZigTest; |
| 89 | | 90 | |
| 90 | // TODO: Repopulate the below array and | 91 | 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; | | |
| 99 | | 92 | |
| 100 | inline for (widths) |len| { | 93 | inline for (widths) |len| { |
| 101 | const V: type = @Vector(len, T); | 94 | const V: type = @Vector(len, T); |