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" {...@@ -2504,10 +2504,6 @@ test "positional/alignment/width/precision" {
2504}2504}
25052505
2506test "vector" {2506test "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 }
2511 if (builtin.target.cpu.arch == .riscv64) {2507 if (builtin.target.cpu.arch == .riscv64) {
2512 // https://github.com/ziglang/zig/issues/44862508 // https://github.com/ziglang/zig/issues/4486
2513 return error.SkipZigTest;2509 return error.SkipZigTest;
lib/std/hash/auto_hash.zig-3
...@@ -399,9 +399,6 @@ test "testHash union" {...@@ -399,9 +399,6 @@ test "testHash union" {
399}399}
400400
401test "testHash vector" {401test "testHash vector" {
402 // Disabled because of #3317
403 if (builtin.target.cpu.arch == .mipsel or builtin.target.cpu.arch == .mips) return error.SkipZigTest;
404
405 const a: meta.Vector(4, u32) = [_]u32{ 1, 2, 3, 4 };402 const a: meta.Vector(4, u32) = [_]u32{ 1, 2, 3, 4 };
406 const b: meta.Vector(4, u32) = [_]u32{ 1, 2, 3, 5 };403 const b: meta.Vector(4, u32) = [_]u32{ 1, 2, 3, 5 };
407 try testing.expect(testHash(a) == testHash(a));404 try testing.expect(testHash(a) == testHash(a));
test/behavior/byteswap.zig-3
...@@ -39,9 +39,6 @@ test "@byteSwap integers" {...@@ -39,9 +39,6 @@ test "@byteSwap integers" {
39}39}
4040
41test "@byteSwap vectors" {41test "@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
45 const ByteSwapVectorTest = struct {42 const ByteSwapVectorTest = struct {
46 fn run() !void {43 fn run() !void {
47 try t(u8, 2, [_]u8{ 0x12, 0x13 }, [_]u8{ 0x12, 0x13 });44 try t(u8, 2, [_]u8{ 0x12, 0x13 }, [_]u8{ 0x12, 0x13 });
test/behavior/popcount.zig-3
...@@ -46,9 +46,6 @@ fn testPopCountIntegers() !void {...@@ -46,9 +46,6 @@ fn testPopCountIntegers() !void {
46}46}
4747
48test "@popCount vectors" {48test "@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
52 comptime try testPopCountVectors();49 comptime try testPopCountVectors();
53 try testPopCountVectors();50 try testPopCountVectors();
54}51}
test/behavior/shuffle.zig+1-2
...@@ -35,8 +35,7 @@ test "@shuffle" {...@@ -35,8 +35,7 @@ test "@shuffle" {
35 try expect(mem.eql(i32, &@as([4]i32, res), &[4]i32{ 2147483647, 3, -2, 4 }));35 try expect(mem.eql(i32, &@as([4]i32, res), &[4]i32{ 2147483647, 3, -2, 4 }));
3636
37 // bool37 // bool
38 // https://github.com/ziglang/zig/issues/331738 {
39 if (builtin.target.cpu.arch != .mipsel and builtin.target.cpu.arch != .mips) {
40 var x2: Vector(4, bool) = [4]bool{ false, true, false, true };39 var x2: Vector(4, bool) = [4]bool{ false, true, false, true };
41 var v4: Vector(2, bool) = [2]bool{ true, false };40 var v4: Vector(2, bool) = [2]bool{ true, false };
42 const mask5: Vector(4, i32) = [4]i32{ 0, ~@as(i32, 1), 1, 2 };41 const mask5: Vector(4, i32) = [4]i32{ 0, ~@as(i32, 1), 1, 2 };