diff --git a/test/behavior/math.zig b/test/behavior/math.zig index c23e8ebe3e..7cf7ca4c5d 100644 --- a/test/behavior/math.zig +++ b/test/behavior/math.zig @@ -126,6 +126,13 @@ fn testOneCtz(comptime T: type, x: T) u32 { } test "@ctz vectors" { + 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 + return error.SkipZigTest; + } + try testCtzVectors(); comptime try testCtzVectors(); }