authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-01-18 15:53:23-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-01-18 21:25:22-07:00
logde5908548c65944ce21c05bae274c03bb1188aa1
tree8c4fd930a8f7b82e3a0f3c33a2444ffba5a622e9
parent30efcf22d799c055d8ec987aa2f55a11c133b709

disable failing atomicrmw test on llvm + aarch64


1 files changed, 13 insertions(+), 0 deletions(-)

test/behavior/atomics.zig+13
...@@ -115,6 +115,13 @@ fn test_u128_cmpxchg() !void {...@@ -115,6 +115,13 @@ fn test_u128_cmpxchg() !void {
115var a_global_variable = @as(u32, 1234);115var a_global_variable = @as(u32, 1234);
116116
117test "cmpxchg on a global variable" {117test "cmpxchg on a global variable" {
118 if ((builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) and
119 builtin.cpu.arch == .aarch64)
120 {
121 // https://github.com/ziglang/zig/issues/10627
122 return error.SkipZigTest;
123 }
124
118 _ = @cmpxchgWeak(u32, &a_global_variable, 1234, 42, .Acquire, .Monotonic);125 _ = @cmpxchgWeak(u32, &a_global_variable, 1234, 42, .Acquire, .Monotonic);
119 try expect(a_global_variable == 42);126 try expect(a_global_variable == 42);
120}127}
...@@ -153,6 +160,12 @@ fn testAtomicStore() !void {...@@ -153,6 +160,12 @@ fn testAtomicStore() !void {
153}160}
154161
155test "atomicrmw with floats" {162test "atomicrmw with floats" {
163 if ((builtin.zig_backend == .stage1 or builtin.zig_backend == .stage2_llvm) and
164 builtin.cpu.arch == .aarch64)
165 {
166 // https://github.com/ziglang/zig/issues/10627
167 return error.SkipZigTest;
168 }
156 try testAtomicRmwFloat();169 try testAtomicRmwFloat();
157 comptime try testAtomicRmwFloat();170 comptime try testAtomicRmwFloat();
158}171}