authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-09-05 20:35:51+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-09-05 20:35:51+02:00
logc32b526783c89910c22859a37a804ef389a03e1c
tree613ab2caf4736ae0a1576f147ef56498f2973e1b
parent0357aa608fd60f632e22a6db2b6ca006169b8c64
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

disable some float tests that are failing on aarch64-netbsd

https://codeberg.org/ziglang/zig/issues/36765

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

lib/std/math/ldexp.zig+3
...@@ -1,3 +1,4 @@...@@ -1,3 +1,4 @@
1const builtin = @import("builtin");
1const std = @import("std");2const std = @import("std");
2const math = std.math;3const math = std.math;
3const Log2Int = std.math.Log2Int;4const Log2Int = std.math.Log2Int;
...@@ -67,6 +68,8 @@ pub fn ldexp(x: anytype, n: i32) @TypeOf(x) {...@@ -67,6 +68,8 @@ pub fn ldexp(x: anytype, n: i32) @TypeOf(x) {
67}68}
6869
69test ldexp {70test ldexp {
71 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isAarch64() and builtin.os.tag == .netbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/36765
72
70 // subnormals73 // subnormals
71 try expect(ldexp(@as(f16, 0x1.1FFp14), -14 - 9 - 15) == math.floatTrueMin(f16));74 try expect(ldexp(@as(f16, 0x1.1FFp14), -14 - 9 - 15) == math.floatTrueMin(f16));
72 try expect(ldexp(@as(f32, 0x1.3FFFFFp-1), -126 - 22) == math.floatTrueMin(f32));75 try expect(ldexp(@as(f32, 0x1.3FFFFFp-1), -126 - 22) == math.floatTrueMin(f32));
lib/std/math/nextafter.zig+3
...@@ -1,3 +1,4 @@...@@ -1,3 +1,4 @@
1const builtin = @import("builtin");
1const std = @import("../std.zig");2const std = @import("../std.zig");
2const math = std.math;3const math = std.math;
3const assert = std.debug.assert;4const assert = std.debug.assert;
...@@ -143,6 +144,8 @@ test "int" {...@@ -143,6 +144,8 @@ test "int" {
143}144}
144145
145test "float" {146test "float" {
147 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isAarch64() and builtin.os.tag == .netbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/36765
148
146 @setEvalBranchQuota(4000);149 @setEvalBranchQuota(4000);
147150
148 // normal -> normal151 // normal -> normal
test/behavior/floatop.zig+4
...@@ -126,6 +126,7 @@ test "cmp f16" {...@@ -126,6 +126,7 @@ test "cmp f16" {
126test "cmp f32" {126test "cmp f32" {
127 if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest;127 if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest;
128 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO128 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
129 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isAarch64() and builtin.os.tag == .netbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/36765
129130
130 try testCmp(f32);131 try testCmp(f32);
131 try comptime testCmp(f32);132 try comptime testCmp(f32);
...@@ -133,6 +134,7 @@ test "cmp f32" {...@@ -133,6 +134,7 @@ test "cmp f32" {
133134
134test "cmp f64" {135test "cmp f64" {
135 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO136 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
137 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isAarch64() and builtin.os.tag == .netbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/36765
136138
137 try testCmp(f64);139 try testCmp(f64);
138 try comptime testCmp(f64);140 try comptime testCmp(f64);
...@@ -228,6 +230,7 @@ test "vector cmp f32" {...@@ -228,6 +230,7 @@ test "vector cmp f32" {
228 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO230 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
229 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;231 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
230 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isArm()) return error.SkipZigTest;232 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isArm()) return error.SkipZigTest;
233 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isAarch64() and builtin.os.tag == .netbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/36765
231 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isPowerPC64()) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/214198234 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isPowerPC64()) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/214198
232 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .hexagon) return error.SkipZigTest;235 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .hexagon) return error.SkipZigTest;
233236
...@@ -239,6 +242,7 @@ test "vector cmp f64" {...@@ -239,6 +242,7 @@ test "vector cmp f64" {
239 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;242 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
240 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO243 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
241 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;244 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
245 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.isAarch64() and builtin.os.tag == .netbsd) return error.SkipZigTest; // https://codeberg.org/ziglang/zig/issues/36765
242 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .hexagon) return error.SkipZigTest;246 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .hexagon) return error.SkipZigTest;
243247
244 try testCmpVector(f64);248 try testCmpVector(f64);