authorgravatar for goon.pri.low@gmail.comKendall Condon <goon.pri.low@gmail.com> 2026-05-03 20:28:37-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-25 18:38:01-07:00
log65819004f32dda70b6f35f7226de005155f68a4c
treed5c4668314089b9fce7219c3c5a2f2393d15cbd0
parentc805c7228978df4af34ee0d63948234fb0ab504e

workaround surfaced backend bugs

self-hosted wasm workaround provided by pavelverigo in #31991 powerpc workarounds provided by alexrp in #31991

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

lib/std/fmt/float.zig+2
......@@ -1646,6 +1646,8 @@ test "format f64" {
16461646}
16471647
16481648test "format f80" {
1649 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest;
1650
16491651 try check(f80, 0.0, "0e0");
16501652 try check(f80, -0.0, "-0e0");
16511653 try check(f80, 1.0, "1e0");
test/behavior/vector.zig+1
......@@ -748,6 +748,7 @@ test "vector reduce operation" {
748748 if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest;
749749 if (builtin.zig_backend == .stage2_c and builtin.cpu.arch.isArm()) return error.SkipZigTest;
750750 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
751 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isPowerPC()) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/195562
751752
752753 const S = struct {
753754 fn testReduce(comptime op: std.builtin.ReduceOp, x: anytype, expected: anytype) !void {
test/tests.zig+9
......@@ -2612,6 +2612,10 @@ fn addOneModuleTest(
26122612 if (mem.eql(u8, options.name, "compiler-rt") or mem.eql(u8, options.name, "libc")) {
26132613 these_tests.root_module.stack_protector = false;
26142614 }
2615 // https://github.com/llvm/llvm-project/issues/195561
2616 if (target.cpu.arch.isPowerPC()) {
2617 these_tests.root_module.stack_protector = false;
2618 }
26152619 if (options.build_options) |build_options| {
26162620 these_tests.root_module.addOptions("build_options", build_options);
26172621 }
......@@ -2857,6 +2861,11 @@ pub fn addCAbiTests(b: *std.Build, options: CAbiTestOptions) *Step {
28572861 .max_rss = options.max_rss,
28582862 });
28592863
2864 // https://github.com/llvm/llvm-project/issues/195561
2865 if (target.cpu.arch.isPowerPC()) {
2866 test_step.root_module.stack_protector = false;
2867 }
2868
28602869 // This test is intentionally trying to check if the external ABI is
28612870 // done properly. LTO would be a hindrance to this.
28622871 test_step.lto = .none;