authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-08-04 20:47:13+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-08-30 06:36:41+02:00
logaf78c5567682535ff763dddc785f851dc41bbd04
tree1670cda91c50f82fdc00a9708fb2d7510eb316ee
parent367be3777c7dcdd8ca19de0b2a8e2dc4b91486e0
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std: skip some failing tests on hexagon


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

lib/std/math.zig+2
...@@ -636,6 +636,7 @@ test shl {...@@ -636,6 +636,7 @@ test shl {
636636
637 try testing.expect(shl(i8, -1, -100) == -1);637 try testing.expect(shl(i8, -1, -100) == -1);
638 try testing.expect(shl(i8, -1, 100) == 0);638 try testing.expect(shl(i8, -1, 100) == 0);
639 if (builtin.cpu.arch == .hexagon and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest;
639 try testing.expect(@reduce(.And, shl(@Vector(2, i8), .{ -1, 1 }, -100) == @Vector(2, i8){ -1, 0 }));640 try testing.expect(@reduce(.And, shl(@Vector(2, i8), .{ -1, 1 }, -100) == @Vector(2, i8){ -1, 0 }));
640 try testing.expect(@reduce(.And, shl(@Vector(2, i8), .{ -1, 1 }, 100) == @Vector(2, i8){ 0, 0 }));641 try testing.expect(@reduce(.And, shl(@Vector(2, i8), .{ -1, 1 }, 100) == @Vector(2, i8){ 0, 0 }));
641}642}
...@@ -684,6 +685,7 @@ test shr {...@@ -684,6 +685,7 @@ test shr {
684685
685 try testing.expect(shr(i8, -1, -100) == 0);686 try testing.expect(shr(i8, -1, -100) == 0);
686 try testing.expect(shr(i8, -1, 100) == -1);687 try testing.expect(shr(i8, -1, 100) == -1);
688 if (builtin.cpu.arch == .hexagon and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest;
687 try testing.expect(@reduce(.And, shr(@Vector(2, i8), .{ -1, 1 }, -100) == @Vector(2, i8){ 0, 0 }));689 try testing.expect(@reduce(.And, shr(@Vector(2, i8), .{ -1, 1 }, -100) == @Vector(2, i8){ 0, 0 }));
688 try testing.expect(@reduce(.And, shr(@Vector(2, i8), .{ -1, 1 }, 100) == @Vector(2, i8){ -1, 0 }));690 try testing.expect(@reduce(.And, shr(@Vector(2, i8), .{ -1, 1 }, 100) == @Vector(2, i8){ -1, 0 }));
689}691}
lib/std/math/isnan.zig+1
...@@ -34,6 +34,7 @@ test isSignalNan {...@@ -34,6 +34,7 @@ test isSignalNan {
34 // See https://github.com/ziglang/zig/issues/1436634 // See https://github.com/ziglang/zig/issues/14366
35 if (!builtin.cpu.arch.isArm() and35 if (!builtin.cpu.arch.isArm() and
36 !builtin.cpu.arch.isAARCH64() and36 !builtin.cpu.arch.isAARCH64() and
37 builtin.cpu.arch != .hexagon and
37 !builtin.cpu.arch.isMIPS32() and38 !builtin.cpu.arch.isMIPS32() and
38 !builtin.cpu.arch.isPowerPC() and39 !builtin.cpu.arch.isPowerPC() and
39 builtin.zig_backend != .stage2_c)40 builtin.zig_backend != .stage2_c)
lib/std/math/log10.zig+1
...@@ -135,6 +135,7 @@ test log10_int {...@@ -135,6 +135,7 @@ test log10_int {
135 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO135 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
136 if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO136 if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
137 if (builtin.zig_backend == .stage2_llvm and comptime builtin.target.cpu.arch.isWasm()) return error.SkipZigTest; // TODO137 if (builtin.zig_backend == .stage2_llvm and comptime builtin.target.cpu.arch.isWasm()) return error.SkipZigTest; // TODO
138 if (builtin.zig_backend == .stage2_llvm and comptime builtin.target.cpu.arch == .hexagon) return error.SkipZigTest;
138139
139 inline for (140 inline for (
140 .{ u8, u16, u32, u64, u128, u256, u512 },141 .{ u8, u16, u32, u64, u128, u256, u512 },