mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
tests: Enable PPC64LE as a test target
This commit is contained in:
parent
46fb730712
commit
b8c587eb40
@ -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);
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user