Skip to content

Commit 366c302

Browse files
committed
behavior,std: disable tests triggering LLVM 15 bug
This bug is newly triggered by these tests since some values are now correctly promoted to comptime-known constants. Tracked by ziglang#13782
1 parent 7a096f4 commit 366c302

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

lib/std/fmt.zig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2756,6 +2756,11 @@ test "vector" {
27562756
return error.SkipZigTest;
27572757
}
27582758

2759+
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.endian() == .Big) {
2760+
// https://github.com/ziglang/zig/issues/13782
2761+
return error.SkipZigTest;
2762+
}
2763+
27592764
const vbool: @Vector(4, bool) = [_]bool{ true, false, true, false };
27602765
const vi64: @Vector(4, i64) = [_]i64{ -2, -1, 0, 1 };
27612766
const vu64: @Vector(4, u64) = [_]u64{ 1000, 2000, 3000, 4000 };

lib/std/hash/auto_hash.zig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,11 @@ test "testHash union" {
408408
}
409409

410410
test "testHash vector" {
411+
if (@import("builtin").zig_backend == .stage2_llvm and @import("builtin").cpu.arch.endian() == .Big) {
412+
// https://github.com/ziglang/zig/issues/13782
413+
return error.SkipZigTest;
414+
}
415+
411416
const a: @Vector(4, u32) = [_]u32{ 1, 2, 3, 4 };
412417
const b: @Vector(4, u32) = [_]u32{ 1, 2, 3, 5 };
413418
try testing.expect(testHash(a) == testHash(a));

test/behavior/vector.zig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ test "implicit cast vector to array - bool" {
1414
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
1515
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
1616

17+
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.endian() == .Big) {
18+
// https://github.com/ziglang/zig/issues/13782
19+
return error.SkipZigTest;
20+
}
21+
1722
const S = struct {
1823
fn doTheTest() !void {
1924
const a: @Vector(4, bool) = [_]bool{ true, false, true, false };
@@ -492,6 +497,11 @@ test "vector comparison operators" {
492497
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
493498
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
494499

500+
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch.endian() == .Big) {
501+
// https://github.com/ziglang/zig/issues/13782
502+
return error.SkipZigTest;
503+
}
504+
495505
const S = struct {
496506
fn doTheTest() !void {
497507
{

0 commit comments

Comments
 (0)