mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
parent
a338eaccc8
commit
303e1a062c
@ -2504,10 +2504,6 @@ test "positional/alignment/width/precision" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test "vector" {
|
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) {
|
if (builtin.target.cpu.arch == .riscv64) {
|
||||||
// https://github.com/ziglang/zig/issues/4486
|
// https://github.com/ziglang/zig/issues/4486
|
||||||
return error.SkipZigTest;
|
return error.SkipZigTest;
|
||||||
|
|||||||
@ -399,9 +399,6 @@ test "testHash union" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test "testHash vector" {
|
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 a: meta.Vector(4, u32) = [_]u32{ 1, 2, 3, 4 };
|
||||||
const b: meta.Vector(4, u32) = [_]u32{ 1, 2, 3, 5 };
|
const b: meta.Vector(4, u32) = [_]u32{ 1, 2, 3, 5 };
|
||||||
try testing.expect(testHash(a) == testHash(a));
|
try testing.expect(testHash(a) == testHash(a));
|
||||||
|
|||||||
@ -39,9 +39,6 @@ test "@byteSwap integers" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test "@byteSwap vectors" {
|
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 {
|
const ByteSwapVectorTest = struct {
|
||||||
fn run() !void {
|
fn run() !void {
|
||||||
try t(u8, 2, [_]u8{ 0x12, 0x13 }, [_]u8{ 0x12, 0x13 });
|
try t(u8, 2, [_]u8{ 0x12, 0x13 }, [_]u8{ 0x12, 0x13 });
|
||||||
|
|||||||
@ -46,9 +46,6 @@ fn testPopCountIntegers() !void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test "@popCount vectors" {
|
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();
|
comptime try testPopCountVectors();
|
||||||
try testPopCountVectors();
|
try testPopCountVectors();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,8 +35,7 @@ test "@shuffle" {
|
|||||||
try expect(mem.eql(i32, &@as([4]i32, res), &[4]i32{ 2147483647, 3, -2, 4 }));
|
try expect(mem.eql(i32, &@as([4]i32, res), &[4]i32{ 2147483647, 3, -2, 4 }));
|
||||||
|
|
||||||
// bool
|
// 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 x2: Vector(4, bool) = [4]bool{ false, true, false, true };
|
||||||
var v4: Vector(2, bool) = [2]bool{ true, false };
|
var v4: Vector(2, bool) = [2]bool{ true, false };
|
||||||
const mask5: Vector(4, i32) = [4]i32{ 0, ~@as(i32, 1), 1, 2 };
|
const mask5: Vector(4, i32) = [4]i32{ 0, ~@as(i32, 1), 1, 2 };
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user