zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 558ad1909573abfe2c9387391917c110ef95310e (tree)
parent 9a5c7b4b4d12a4ad90f10fafc5fa6b34d99549bb
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Tue,  5 Jul 2022 18:24:26 -0700

disable regressed behavior tests from llvm 14

See #12012
See #12013

Diffstat:
Mtest/behavior/math.zig | 9+++++----
Mtest/behavior/vector.zig | 8++++++++
2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/test/behavior/math.zig b/test/behavior/math.zig @@ -161,10 +161,11 @@ test "@ctz vectors" { if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO - if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) { - // TODO this is tripping an LLVM assert: - // zig: /home/andy/Downloads/llvm-project-13/llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp:198: llvm::LegalizeActionStep llvm::LegalizeRuleSet::apply(const llvm::LegalityQuery&) const: Assertion `mutationIsSane(Rule, Query, Mutation) && "legality mutation invalid for match"' failed. - // I need to report a zig issue and an llvm issue + if ((builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) and + builtin.cpu.arch == .aarch64) + { + // This regressed with LLVM 14: + // https://github.com/ziglang/zig/issues/12013 return error.SkipZigTest; } diff --git a/test/behavior/vector.zig b/test/behavior/vector.zig @@ -180,6 +180,14 @@ test "tuple to vector" { if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO + if ((builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) and + builtin.cpu.arch == .aarch64) + { + // Regressed with LLVM 14: + // https://github.com/ziglang/zig/issues/12012 + return error.SkipZigTest; + } + const S = struct { fn doTheTest() !void { const Vec3 = @Vector(3, i32);