diff --git a/lib/std/meta.zig b/lib/std/meta.zig index 9f4d0aaeeb366b351f04b0a075c8a3eb1a8b69a6..5d022ecffab01cc8999073497c79e4d765803a52 100644 --- a/lib/std/meta.zig +++ b/lib/std/meta.zig @@ -1,3 +1,4 @@ +const builtin = @import("builtin"); const std = @import("std.zig"); const debug = std.debug; const mem = std.mem; @@ -810,6 +811,17 @@ test eql { try testing.expect(eql(EU.tst(false), EU.tst(false))); try testing.expect(!eql(EU.tst(false), EU.tst(true))); + const CU = union(enum) { + a: void, + b: void, + c: comptime_int, + }; + + try testing.expect(eql(CU{ .a = {} }, .a)); + try testing.expect(!eql(CU{ .a = {} }, .b)); + + if (builtin.cpu.arch == .hexagon) return error.SkipZigTest; + const V = @Vector(4, u32); const v1: V = @splat(1); const v2: V = @splat(1); @@ -817,15 +829,6 @@ test eql { try testing.expect(eql(v1, v2)); try testing.expect(!eql(v1, v3)); - - const CU = union(enum) { - a: void, - b: void, - c: comptime_int, - }; - - try testing.expect(eql(CU{ .a = {} }, .a)); - try testing.expect(!eql(CU{ .a = {} }, .b)); } /// Deprecated: use `std.enums.fromInt` instead and handle null. diff --git a/lib/std/posix/test.zig b/lib/std/posix/test.zig index cd322945d36e9d5994168e7c0d92ad88be2e8722..5f22d18f0171072f8a74471e19e5438e121bd0ca 100644 --- a/lib/std/posix/test.zig +++ b/lib/std/posix/test.zig @@ -495,6 +495,8 @@ test "mmap" { } } + if (builtin.cpu.arch == .hexagon) return error.SkipZigTest; + // Map the upper half of the file { const file = try tmp.dir.openFile(test_out_file, .{}); diff --git a/lib/std/simd.zig b/lib/std/simd.zig index 25f454ef24c4608959977b4dbdf18916bce1057e..e0b2195726243494f6b5d33b469752e544ef415e 100644 --- a/lib/std/simd.zig +++ b/lib/std/simd.zig @@ -228,6 +228,8 @@ pub fn extract( } test "vector patterns" { + if (builtin.cpu.arch == .hexagon) return error.SkipZigTest; + const base = @Vector(4, u32){ 10, 20, 30, 40 }; const other_base = @Vector(4, u32){ 55, 66, 77, 88 };