Skip to content

Commit e8ce172

Browse files
committed
disable regressed wasm32 behavior tests from LLVM 14
1 parent fc7c0e0 commit e8ce172

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

test/behavior.zig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,15 @@ test {
177177
{
178178
_ = @import("behavior/bugs/11227.zig");
179179
_ = @import("behavior/export.zig");
180+
}
181+
182+
if (builtin.zig_backend != .stage2_arm and
183+
builtin.zig_backend != .stage2_x86_64 and
184+
builtin.zig_backend != .stage2_aarch64 and
185+
builtin.zig_backend != .stage2_wasm and
186+
builtin.zig_backend != .stage2_c and
187+
builtin.zig_backend != .stage1)
188+
{
180189
_ = @import("behavior/export_self_referential_type_info.zig");
181190
}
182191
}

test/behavior/basic.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,10 @@ test "auto created variables have correct alignment" {
796796
}
797797

798798
test "extern variable with non-pointer opaque type" {
799+
if (builtin.zig_backend == .stage1) {
800+
// Regressed with LLVM 14
801+
return error.SkipZigTest;
802+
}
799803
if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
800804
if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
801805
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO

test/behavior/math.zig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,14 @@ test "128-bit multiplication" {
608608
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
609609
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
610610

611+
if ((builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) and
612+
builtin.cpu.arch == .wasm32)
613+
{
614+
// TODO This regressed with LLVM 14 due to the __muloti4 compiler-rt symbol
615+
// being lowered to call itself despite having the "nobuiltin" attribute.
616+
return error.SkipZigTest;
617+
}
618+
611619
var a: i128 = 3;
612620
var b: i128 = 2;
613621
var c = a * b;

0 commit comments

Comments
 (0)