authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-06-01 10:15:20+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-06-01 14:46:00+02:00
log6384ac6601b4d0654022786edba0cb775255ebd6
tree0a2adc76d6ed6ed7c3ce91fe8991335b145b3493
parent4219825042057ce901df1261e089ef477c381fe7
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

behavior: disable tail call tests on powerpc and mips with the C backend

Since LLVM doesn't support tail calls on these targets, these tests shouldn't run with the C backend either. closes https://codeberg.org/ziglang/zig/issues/35522

2 files changed, 4 insertions(+), 9 deletions(-)

test/behavior/call.zig+4-4
......@@ -277,7 +277,7 @@ test "forced tail call" {
277277 if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest;
278278 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
279279
280 if (builtin.zig_backend == .stage2_llvm) {
280 if (builtin.zig_backend == .stage2_llvm or builtin.zig_backend == .stage2_c) {
281281 if (builtin.cpu.arch.isMIPS() or builtin.cpu.arch.isPowerPC() or builtin.cpu.arch.isWasm()) {
282282 return error.SkipZigTest;
283283 }
......@@ -312,7 +312,7 @@ test "inline call preserves tail call" {
312312 if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest;
313313 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
314314
315 if (builtin.zig_backend == .stage2_llvm) {
315 if (builtin.zig_backend == .stage2_llvm or builtin.zig_backend == .stage2_c) {
316316 if (builtin.cpu.arch.isMIPS() or builtin.cpu.arch.isPowerPC() or builtin.cpu.arch.isWasm()) {
317317 return error.SkipZigTest;
318318 }
......@@ -708,7 +708,7 @@ test "tail call function pointer" {
708708 if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest;
709709 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
710710
711 if (builtin.zig_backend == .stage2_llvm) {
711 if (builtin.zig_backend == .stage2_llvm or builtin.zig_backend == .stage2_c) {
712712 if (builtin.cpu.arch.isMIPS() or builtin.cpu.arch.isPowerPC() or builtin.cpu.arch.isWasm()) {
713713 return error.SkipZigTest;
714714 }
......@@ -736,7 +736,7 @@ test "tail call with potentially extended types" {
736736 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
737737 if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
738738
739 if (builtin.zig_backend == .stage2_llvm) {
739 if (builtin.zig_backend == .stage2_llvm or builtin.zig_backend == .stage2_c) {
740740 if (builtin.cpu.arch.isMIPS() or builtin.cpu.arch.isPowerPC() or builtin.cpu.arch.isWasm()) {
741741 return error.SkipZigTest;
742742 }
test/tests.zig-5
......@@ -2650,11 +2650,6 @@ pub fn addModuleTests(b: *std.Build, options: ModuleTestOptions) *Step {
26502650
26512651 const target = &resolved_target.result;
26522652
2653 if (target.cpu.arch == .powerpc64le and target.ofmt == .c) {
2654 // https://codeberg.org/ziglang/zig/issues/35522
2655 continue;
2656 }
2657
26582653 if (target.cpu.arch == .s390x and target.ofmt == .c) {
26592654 // https://codeberg.org/ziglang/zig/issues/35523
26602655 continue;