| ... | @@ -115,6 +115,13 @@ fn test_u128_cmpxchg() !void { | ... | @@ -115,6 +115,13 @@ fn test_u128_cmpxchg() !void { |
| 115 | var a_global_variable = @as(u32, 1234); | 115 | var a_global_variable = @as(u32, 1234); |
| 116 | | 116 | |
| 117 | test "cmpxchg on a global variable" { | 117 | test "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 | } |
| 154 | | 161 | |
| 155 | test "atomicrmw with floats" { | 162 | test "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 | } |