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 {
636636
637637 try testing.expect(shl(i8, -1, -100) == -1);
638638 try testing.expect(shl(i8, -1, 100) == 0);
639 if (builtin.cpu.arch == .hexagon and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest;
639640 try testing.expect(@reduce(.And, shl(@Vector(2, i8), .{ -1, 1 }, -100) == @Vector(2, i8){ -1, 0 }));
640641 try testing.expect(@reduce(.And, shl(@Vector(2, i8), .{ -1, 1 }, 100) == @Vector(2, i8){ 0, 0 }));
641642}
......@@ -684,6 +685,7 @@ test shr {
684685
685686 try testing.expect(shr(i8, -1, -100) == 0);
686687 try testing.expect(shr(i8, -1, 100) == -1);
688 if (builtin.cpu.arch == .hexagon and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest;
687689 try testing.expect(@reduce(.And, shr(@Vector(2, i8), .{ -1, 1 }, -100) == @Vector(2, i8){ 0, 0 }));
688690 try testing.expect(@reduce(.And, shr(@Vector(2, i8), .{ -1, 1 }, 100) == @Vector(2, i8){ -1, 0 }));
689691}
lib/std/math/isnan.zig+1
......@@ -34,6 +34,7 @@ test isSignalNan {
3434 // See https://github.com/ziglang/zig/issues/14366
3535 if (!builtin.cpu.arch.isArm() and
3636 !builtin.cpu.arch.isAARCH64() and
37 builtin.cpu.arch != .hexagon and
3738 !builtin.cpu.arch.isMIPS32() and
3839 !builtin.cpu.arch.isPowerPC() and
3940 builtin.zig_backend != .stage2_c)
lib/std/math/log10.zig+1
......@@ -135,6 +135,7 @@ test log10_int {
135135 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
136136 if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
137137 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
139140 inline for (
140141 .{ u8, u16, u32, u64, u128, u256, u512 },