From de5908548c65944ce21c05bae274c03bb1188aa1 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 18 Jan 2022 15:53:23 -0700 Subject: [PATCH] disable failing atomicrmw test on llvm + aarch64 --- test/behavior/atomics.zig | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/behavior/atomics.zig b/test/behavior/atomics.zig index efb4e32960..c642374607 100644 --- a/test/behavior/atomics.zig +++ b/test/behavior/atomics.zig @@ -115,6 +115,13 @@ fn test_u128_cmpxchg() !void { var a_global_variable = @as(u32, 1234); test "cmpxchg on a global variable" { + if ((builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) and + builtin.cpu.arch == .aarch64) + { + // https://github.com/ziglang/zig/issues/10627 + return error.SkipZigTest; + } + _ = @cmpxchgWeak(u32, &a_global_variable, 1234, 42, .Acquire, .Monotonic); try expect(a_global_variable == 42); } @@ -153,6 +160,12 @@ fn testAtomicStore() !void { } test "atomicrmw with floats" { + if ((builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) and + builtin.cpu.arch == .aarch64) + { + // https://github.com/ziglang/zig/issues/10627 + return error.SkipZigTest; + } try testAtomicRmwFloat(); comptime try testAtomicRmwFloat(); }