authorgravatar for topolarity@tapscott.meCody Tapscott <topolarity@tapscott.me> 2022-10-11 11:11:46-07:00
committergravatar for topolarity@tapscott.meCody Tapscott <topolarity@tapscott.me> 2022-10-13 12:53:20-07:00
logb8c587eb4068d2fec5303641b7960d1ab885864b
tree46fbcd4899847ac84f4ee1de69617329a593c198
parent46fb73071254658fae63539e450afed08a9f1e4b

tests: Enable PPC64LE as a test target


2 files changed, 28 insertions(+), 0 deletions(-)

lib/std/atomic/Atomic.zig+4
......@@ -374,6 +374,10 @@ const atomic_rmw_orderings = [_]Ordering{
374374};
375375
376376test "Atomic.swap" {
377 // TODO: Re-enable when LLVM is released with a bugfix for isel of
378 // atomic load (currently fixed on trunk, broken on 15.0.2)
379 if (builtin.cpu.arch == .powerpc64le) return error.SkipZigTest;
380
377381 inline for (atomic_rmw_orderings) |ordering| {
378382 var x = Atomic(usize).init(5);
379383 try testing.expectEqual(x.swap(10, ordering), 5);
test/tests.zig+24
......@@ -315,6 +315,30 @@ const test_targets = blk: {
315315 // .link_libc = true,
316316 //},
317317
318 .{
319 .target = .{
320 .cpu_arch = .powerpc64le,
321 .os_tag = .linux,
322 .abi = .none,
323 },
324 },
325 .{
326 .target = .{
327 .cpu_arch = .powerpc64le,
328 .os_tag = .linux,
329 .abi = .musl,
330 },
331 .link_libc = true,
332 },
333 .{
334 .target = .{
335 .cpu_arch = .powerpc64le,
336 .os_tag = .linux,
337 .abi = .gnu,
338 },
339 .link_libc = true,
340 },
341
318342 .{
319343 .target = .{
320344 .cpu_arch = .riscv64,