| ... | ... | @@ -1,4 +1,5 @@ |
| 1 | 1 | const std = @import("../std.zig"); |
| 2 | const builtin = @import("builtin"); |
| 2 | 3 | const math = std.math; |
| 3 | 4 | const expect = std.testing.expect; |
| 4 | 5 | const expectEqual = std.testing.expectEqual; |
| ... | ... | @@ -84,18 +85,10 @@ fn ModfTests(comptime T: type) type { |
| 84 | 85 | try expectApproxEqAbs(expected_c, r.fpart, epsilon); |
| 85 | 86 | } |
| 86 | 87 | test "vector" { |
| 87 | | // Currently, a compiler bug is breaking the usage |
| 88 | | // of @trunc on @Vector types |
| 88 | if (builtin.os.tag == .macos and builtin.cpu.arch == .aarch64) return error.SkipZigTest; |
| 89 | if (builtin.cpu.arch == .s390x) return error.SkipZigTest; |
| 89 | 90 | |
| 90 | | // TODO: Repopulate the below array and |
| 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; |
| 91 | const widths = [_]comptime_int{ 1, 2, 3, 4, 8, 16 }; |
| 99 | 92 | |
| 100 | 93 | inline for (widths) |len| { |
| 101 | 94 | const V: type = @Vector(len, T); |