Commit 6302a90cbf

Alex Rønne Petersen <alex@alexrp.com>
2024-10-06 11:12:54
test: Add riscv(32,64)-linux-(none,musl) with soft float to module tests.
1 parent 0941364
Changed files (1)
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,
         },