commit 2a24c17be27e954fbc87de1e1e13a9dd61b0fbf0 (tree)
parent 9b60aa0adc126bf2a966ec42f069c770851774f3
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Fri, 30 Aug 2024 19:47:02 +0200
test: Re-enable LLVM riscv64 module tests.
Closes #18872.
Diffstat:
| M | test/tests.zig | | | 67 | +++++++++++++++++++++++++++---------------------------------------- |
1 file changed, 27 insertions(+), 40 deletions(-)
diff --git a/test/tests.zig b/test/tests.zig
@@ -579,52 +579,39 @@ const test_targets = blk: {
.link_libc = true,
},
- // Disabled until LLVM fixes their O(N^2) codegen. Note that this is so bad that we don't
- // even want to include this in CI with `slow_backend`.
- // https://github.com/ziglang/zig/issues/18872
- //.{
- // .target = .{
- // .cpu_arch = .riscv64,
- // .os_tag = .linux,
- // .abi = .none,
- // },
- // .use_llvm = true,
- //},
-
- // Disabled until LLVM fixes their O(N^2) codegen. Note that this is so bad that we don't
- // even want to include this in CI with `slow_backend`.
- // https://github.com/ziglang/zig/issues/18872
- //.{
- // .target = .{
- // .cpu_arch = .riscv64,
- // .os_tag = .linux,
- // .abi = .musl,
- // },
- // .link_libc = true,
- // .use_llvm = true,
- //},
+ .{
+ .target = .{
+ .cpu_arch = .riscv64,
+ .os_tag = .linux,
+ .abi = .none,
+ },
+ },
+ .{
+ .target = .{
+ .cpu_arch = .riscv64,
+ .os_tag = .linux,
+ .abi = .musl,
+ },
+ .link_libc = true,
+ },
+ .{
+ .target = .{
+ .cpu_arch = .riscv64,
+ .os_tag = .linux,
+ .abi = .gnu,
+ },
+ .link_libc = true,
+ },
.{
- .target = std.Target.Query.parse(
- .{
- .arch_os_abi = "riscv64-linux-musl",
- .cpu_features = "baseline+v+zbb",
- },
- ) catch @panic("OOM"),
+ .target = std.Target.Query.parse(.{
+ .arch_os_abi = "riscv64-linux-musl",
+ .cpu_features = "baseline+v+zbb",
+ }) catch @panic("OOM"),
.use_llvm = false,
.use_lld = false,
},
- // https://github.com/ziglang/zig/issues/3340
- //.{
- // .target = .{
- // .cpu_arch = .riscv64,
- // .os = .linux,
- // .abi = .gnu,
- // },
- // .link_libc = true,
- //},
-
.{
.target = .{
.cpu_arch = .x86_64,