From 6302a90cbf9978766757e11808e7764d5c4611b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sun, 6 Oct 2024 11:12:54 +0200 Subject: [PATCH] test: Add riscv(32,64)-linux-(none,musl) with soft float to module tests. --- test/tests.zig | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/test/tests.zig b/test/tests.zig index 017f9478a92b5f3929a0d0da04964a66e18b32b5..a9035560b3115500256ee22ee5e0932376441efa 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -579,6 +579,20 @@ const test_targets = blk: { .link_libc = true, }, + .{ + .target = std.Target.Query.parse(.{ + .arch_os_abi = "riscv32-linux-none", + .cpu_features = "baseline-d-f", + }) catch unreachable, + }, + .{ + .target = std.Target.Query.parse(.{ + .arch_os_abi = "riscv32-linux-musl", + .cpu_features = "baseline-d-f", + }) catch unreachable, + .link_libc = true, + }, + .{ .target = .{ .cpu_arch = .riscv32, @@ -603,6 +617,20 @@ const test_targets = blk: { .link_libc = true, }, + .{ + .target = std.Target.Query.parse(.{ + .arch_os_abi = "riscv64-linux-none", + .cpu_features = "baseline-d-f", + }) catch unreachable, + }, + .{ + .target = std.Target.Query.parse(.{ + .arch_os_abi = "riscv64-linux-musl", + .cpu_features = "baseline-d-f", + }) catch unreachable, + .link_libc = true, + }, + .{ .target = .{ .cpu_arch = .riscv64, @@ -631,7 +659,7 @@ const test_targets = blk: { .target = std.Target.Query.parse(.{ .arch_os_abi = "riscv64-linux-musl", .cpu_features = "baseline+v+zbb", - }) catch @panic("OOM"), + }) catch unreachable, .use_llvm = false, .use_lld = false, }, -- 2.54.0