Commit 303e1a062c

Andrew Kelley <andrew@ziglang.org>
2021-09-02 00:38:58
re-enable mips behavior tests for vectors
closes #3317
1 parent a338eac
Changed files (5)
lib/std/hash/auto_hash.zig
@@ -399,9 +399,6 @@ test "testHash union" {
 }
 
 test "testHash vector" {
-    // Disabled because of #3317
-    if (builtin.target.cpu.arch == .mipsel or builtin.target.cpu.arch == .mips) return error.SkipZigTest;
-
     const a: meta.Vector(4, u32) = [_]u32{ 1, 2, 3, 4 };
     const b: meta.Vector(4, u32) = [_]u32{ 1, 2, 3, 5 };
     try testing.expect(testHash(a) == testHash(a));
lib/std/fmt.zig
@@ -2504,10 +2504,6 @@ test "positional/alignment/width/precision" {
 }
 
 test "vector" {
-    if (builtin.target.cpu.arch == .mipsel or builtin.target.cpu.arch == .mips) {
-        // https://github.com/ziglang/zig/issues/3317
-        return error.SkipZigTest;
-    }
     if (builtin.target.cpu.arch == .riscv64) {
         // https://github.com/ziglang/zig/issues/4486
         return error.SkipZigTest;
test/behavior/byteswap.zig
@@ -39,9 +39,6 @@ test "@byteSwap integers" {
 }
 
 test "@byteSwap vectors" {
-    // https://github.com/ziglang/zig/issues/3317
-    if (std.Target.current.cpu.arch == .mipsel or std.Target.current.cpu.arch == .mips) return error.SkipZigTest;
-
     const ByteSwapVectorTest = struct {
         fn run() !void {
             try t(u8, 2, [_]u8{ 0x12, 0x13 }, [_]u8{ 0x12, 0x13 });
test/behavior/popcount.zig
@@ -46,9 +46,6 @@ fn testPopCountIntegers() !void {
 }
 
 test "@popCount vectors" {
-    // https://github.com/ziglang/zig/issues/3317
-    if (std.Target.current.cpu.arch == .mipsel or std.Target.current.cpu.arch == .mips) return error.SkipZigTest;
-
     comptime try testPopCountVectors();
     try testPopCountVectors();
 }
test/behavior/shuffle.zig
@@ -35,8 +35,7 @@ test "@shuffle" {
             try expect(mem.eql(i32, &@as([4]i32, res), &[4]i32{ 2147483647, 3, -2, 4 }));
 
             // bool
-            // https://github.com/ziglang/zig/issues/3317
-            if (builtin.target.cpu.arch != .mipsel and builtin.target.cpu.arch != .mips) {
+            {
                 var x2: Vector(4, bool) = [4]bool{ false, true, false, true };
                 var v4: Vector(2, bool) = [2]bool{ true, false };
                 const mask5: Vector(4, i32) = [4]i32{ 0, ~@as(i32, 1), 1, 2 };