authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-05-06 05:35:53+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-05-08 21:32:22+02:00
logdd1de18f9629904b5d97d5791a47244ac63385da
treed2a83828a589b139ddee4652b62da946e57e79cb
parentd381645c73d398f95e015d60029cb5dfb6ee1979
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std: Disable `hash.xxhash.test.xxhash3` on MIPS N32.

https://github.com/ziglang/zig/issues/23807

1 files changed, 3 insertions(+), 0 deletions(-)

lib/std/hash/xxhash.zig+3
...@@ -781,6 +781,7 @@ fn testExpect(comptime H: type, seed: anytype, input: []const u8, expected: u64)...@@ -781,6 +781,7 @@ fn testExpect(comptime H: type, seed: anytype, input: []const u8, expected: u64)
781781
782test "xxhash3" {782test "xxhash3" {
783 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;783 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
784 if (builtin.cpu.arch.isMIPS64() and (builtin.abi == .gnuabin32 or builtin.abi == .muslabin32)) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23807
784785
785 const H = XxHash3;786 const H = XxHash3;
786 // Non-Seeded Tests787 // Non-Seeded Tests
...@@ -814,6 +815,7 @@ test "xxhash3" {...@@ -814,6 +815,7 @@ test "xxhash3" {
814815
815test "xxhash3 smhasher" {816test "xxhash3 smhasher" {
816 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;817 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
818 if (builtin.cpu.arch.isMIPS64() and (builtin.abi == .gnuabin32 or builtin.abi == .muslabin32)) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23807
817819
818 const Test = struct {820 const Test = struct {
819 fn do() !void {821 fn do() !void {
...@@ -827,6 +829,7 @@ test "xxhash3 smhasher" {...@@ -827,6 +829,7 @@ test "xxhash3 smhasher" {
827829
828test "xxhash3 iterative api" {830test "xxhash3 iterative api" {
829 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;831 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
832 if (builtin.cpu.arch.isMIPS64() and (builtin.abi == .gnuabin32 or builtin.abi == .muslabin32)) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/23807
830833
831 const Test = struct {834 const Test = struct {
832 fn do() !void {835 fn do() !void {