From 2a24c17be27e954fbc87de1e1e13a9dd61b0fbf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Fri, 30 Aug 2024 19:47:02 +0200 Subject: [PATCH] test: Re-enable LLVM riscv64 module tests. Closes #18872. --- test/tests.zig | 67 ++++++++++++++++++++------------------------------ 1 file changed, 27 insertions(+), 40 deletions(-) diff --git a/test/tests.zig b/test/tests.zig index f07f67c2e1..aac31be230 100644 --- 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,