re-enable mips behavior tests for vectors

closes #3317
This commit is contained in:
Andrew Kelley 2021-09-01 15:38:58 -07:00
parent a338eaccc8
commit 303e1a062c
5 changed files with 1 additions and 15 deletions

View File

@ -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;

View File

@ -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));

View File

@ -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 });

View File

@ -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();
}

View File

@ -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 };