Skip to content

Commit 558ad19

Browse files
committed
disable regressed behavior tests from llvm 14
See #12012 See #12013
1 parent 9a5c7b4 commit 558ad19

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

test/behavior/math.zig

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,11 @@ test "@ctz vectors" {
161161
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
162162
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
163163

164-
if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) {
165-
// TODO this is tripping an LLVM assert:
166-
// 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.
167-
// I need to report a zig issue and an llvm issue
164+
if ((builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) and
165+
builtin.cpu.arch == .aarch64)
166+
{
167+
// This regressed with LLVM 14:
168+
// https://github.com/ziglang/zig/issues/12013
168169
return error.SkipZigTest;
169170
}
170171

test/behavior/vector.zig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,14 @@ test "tuple to vector" {
180180
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
181181
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
182182

183+
if ((builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) and
184+
builtin.cpu.arch == .aarch64)
185+
{
186+
// Regressed with LLVM 14:
187+
// https://github.com/ziglang/zig/issues/12012
188+
return error.SkipZigTest;
189+
}
190+
183191
const S = struct {
184192
fn doTheTest() !void {
185193
const Vec3 = @Vector(3, i32);

0 commit comments

Comments
 (0)