From b8c587eb4068d2fec5303641b7960d1ab885864b Mon Sep 17 00:00:00 2001 From: Cody Tapscott Date: Tue, 11 Oct 2022 11:11:46 -0700 Subject: [PATCH] tests: Enable PPC64LE as a test target --- lib/std/atomic/Atomic.zig | 4 ++++ test/tests.zig | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/lib/std/atomic/Atomic.zig b/lib/std/atomic/Atomic.zig index 57866d21d6..6d5a0fe4fc 100644 --- a/lib/std/atomic/Atomic.zig +++ b/lib/std/atomic/Atomic.zig @@ -374,6 +374,10 @@ const atomic_rmw_orderings = [_]Ordering{ }; test "Atomic.swap" { + // TODO: Re-enable when LLVM is released with a bugfix for isel of + // atomic load (currently fixed on trunk, broken on 15.0.2) + if (builtin.cpu.arch == .powerpc64le) return error.SkipZigTest; + inline for (atomic_rmw_orderings) |ordering| { var x = Atomic(usize).init(5); try testing.expectEqual(x.swap(10, ordering), 5); diff --git a/test/tests.zig b/test/tests.zig index 53e58156a4..aef549d4f9 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -315,6 +315,30 @@ const test_targets = blk: { // .link_libc = true, //}, + .{ + .target = .{ + .cpu_arch = .powerpc64le, + .os_tag = .linux, + .abi = .none, + }, + }, + .{ + .target = .{ + .cpu_arch = .powerpc64le, + .os_tag = .linux, + .abi = .musl, + }, + .link_libc = true, + }, + .{ + .target = .{ + .cpu_arch = .powerpc64le, + .os_tag = .linux, + .abi = .gnu, + }, + .link_libc = true, + }, + .{ .target = .{ .cpu_arch = .riscv64,