authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-09-01 15:38:58-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-09-01 15:41:29-07:00
log303e1a062cdafa0fe06c4a78dabe0a077c239e04
tree77bdbfa5e2f8a37294875188716e8767cee01e11
parenta338eaccc8c3d20a476cb763afebeb7bb1b1a94a

re-enable mips behavior tests for vectors

closes #3317

5 files changed, 1 insertions(+), 15 deletions(-)

lib/std/fmt.zig-4
......@@ -2504,10 +2504,6 @@ test "positional/alignment/width/precision" {
25042504}
25052505
25062506test "vector" {
2507 if (builtin.target.cpu.arch == .mipsel or builtin.target.cpu.arch == .mips) {
2508 // https://github.com/ziglang/zig/issues/3317
2509 return error.SkipZigTest;
2510 }
25112507 if (builtin.target.cpu.arch == .riscv64) {
25122508 // https://github.com/ziglang/zig/issues/4486
25132509 return error.SkipZigTest;
lib/std/hash/auto_hash.zig-3
......@@ -399,9 +399,6 @@ test "testHash union" {
399399}
400400
401401test "testHash vector" {
402 // Disabled because of #3317
403 if (builtin.target.cpu.arch == .mipsel or builtin.target.cpu.arch == .mips) return error.SkipZigTest;
404
405402 const a: meta.Vector(4, u32) = [_]u32{ 1, 2, 3, 4 };
406403 const b: meta.Vector(4, u32) = [_]u32{ 1, 2, 3, 5 };
407404 try testing.expect(testHash(a) == testHash(a));
test/behavior/byteswap.zig-3
......@@ -39,9 +39,6 @@ test "@byteSwap integers" {
3939}
4040
4141test "@byteSwap vectors" {
42 // https://github.com/ziglang/zig/issues/3317
43 if (std.Target.current.cpu.arch == .mipsel or std.Target.current.cpu.arch == .mips) return error.SkipZigTest;
44
4542 const ByteSwapVectorTest = struct {
4643 fn run() !void {
4744 try t(u8, 2, [_]u8{ 0x12, 0x13 }, [_]u8{ 0x12, 0x13 });
test/behavior/popcount.zig-3
......@@ -46,9 +46,6 @@ fn testPopCountIntegers() !void {
4646}
4747
4848test "@popCount vectors" {
49 // https://github.com/ziglang/zig/issues/3317
50 if (std.Target.current.cpu.arch == .mipsel or std.Target.current.cpu.arch == .mips) return error.SkipZigTest;
51
5249 comptime try testPopCountVectors();
5350 try testPopCountVectors();
5451}
test/behavior/shuffle.zig+1-2
......@@ -35,8 +35,7 @@ test "@shuffle" {
3535 try expect(mem.eql(i32, &@as([4]i32, res), &[4]i32{ 2147483647, 3, -2, 4 }));
3636
3737 // bool
38 // https://github.com/ziglang/zig/issues/3317
39 if (builtin.target.cpu.arch != .mipsel and builtin.target.cpu.arch != .mips) {
38 {
4039 var x2: Vector(4, bool) = [4]bool{ false, true, false, true };
4140 var v4: Vector(2, bool) = [2]bool{ true, false };
4241 const mask5: Vector(4, i32) = [4]i32{ 0, ~@as(i32, 1), 1, 2 };