From 919a5dd8ce8c64d7b9a924ea12215fc5f0227e51 Mon Sep 17 00:00:00 2001 From: Justus Klausecker Date: Mon, 29 Jun 2026 19:53:11 +0200 Subject: [PATCH] test/behavior: skip comparisons of bitpacks >128bits for x86_64 backend --- test/behavior/backing_int.zig | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/test/behavior/backing_int.zig b/test/behavior/backing_int.zig index a11976c72063f5f662ecab540e8b3e1ff08e2c47..1ab8b5970e1d93eaf7b7b1196cee5cf51ab5622f 100644 --- a/test/behavior/backing_int.zig +++ b/test/behavior/backing_int.zig @@ -251,8 +251,11 @@ test "@fromBackingInt with packed structs" { const v3: S3 = @fromBackingInt(b3); try expect(v3 == S3.expected.val); - const v4: S4 = @fromBackingInt(b4); - try expect(v4 == S4.expected.val); + // https://codeberg.org/ziglang/zig/issues/35982 + if (builtin.zig_backend != .stage2_x86_64) { + const v4: S4 = @fromBackingInt(b4); + try expect(v4 == S4.expected.val); + } const v5: S5 = @fromBackingInt(b5); try expect(v5 == S5.expected.val); @@ -353,8 +356,11 @@ test "@fromBackingInt with packed unions" { const v3: U3 = @fromBackingInt(b3); try expect(v3 == U3.expected.val); - const v4: U4 = @fromBackingInt(b4); - try expect(v4 == U4.expected.val); + // https://codeberg.org/ziglang/zig/issues/35982 + if (builtin.zig_backend != .stage2_x86_64) { + const v4: U4 = @fromBackingInt(b4); + try expect(v4 == U4.expected.val); + } const v5: U5 = @fromBackingInt(b5); try expect(v5 == U5.expected.val); -- 2.54.0