authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-21 20:37:11+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-05-21 20:37:11+02:00
log0d4f3cc675b71dd3729c7aebab5c47b405922cee
tree0cfe28b8d493435ff1dbbf2d30bf9e98391a80c8
parentbf1c847719ebf933517b5b6e10e07087c725a35b
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

re-enable some tests on RISC-V that no longer fail

Miscompilations appear to have been fixed with LLVM 22. closes https://github.com/ziglang/zig/issues/24299 closes https://github.com/ziglang/zig/issues/24300 closes https://github.com/ziglang/zig/issues/24301 closes https://github.com/ziglang/zig/issues/25083

5 files changed, 0 insertions(+), 12 deletions(-)

lib/std/bit_set.zig-1
...@@ -1708,7 +1708,6 @@ fn testStaticBitSet(comptime Set: type) !void {...@@ -1708,7 +1708,6 @@ fn testStaticBitSet(comptime Set: type) !void {
17081708
1709test Integer {1709test Integer {
1710 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;1710 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest;
1711 if (comptime builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/24300
17121711
1713 try testStaticBitSet(Integer(0));1712 try testStaticBitSet(Integer(0));
1714 try testStaticBitSet(Integer(1));1713 try testStaticBitSet(Integer(1));
lib/std/crypto/ascon.zig-2
...@@ -980,8 +980,6 @@ test "Ascon-CXOF128 with customization" {...@@ -980,8 +980,6 @@ test "Ascon-CXOF128 with customization" {
980}980}
981981
982test "Ascon-AEAD128 round trip with various data sizes" {982test "Ascon-AEAD128 round trip with various data sizes" {
983 if (builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest;
984
985 const key = [_]u8{ 0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF, 0xFE, 0xDC, 0xBA, 0x98, 0x76, 0x54, 0x32, 0x10 };983 const key = [_]u8{ 0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF, 0xFE, 0xDC, 0xBA, 0x98, 0x76, 0x54, 0x32, 0x10 };
986 const nonce = [_]u8{ 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF };984 const nonce = [_]u8{ 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF };
987985
lib/std/crypto/salsa20.zig-6
...@@ -557,8 +557,6 @@ pub const SealedBox = struct {...@@ -557,8 +557,6 @@ pub const SealedBox = struct {
557const htest = @import("test.zig");557const htest = @import("test.zig");
558558
559test "(x)salsa20" {559test "(x)salsa20" {
560 if (builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/24299
561
562 const key: [32]u8 = @splat(0x69);560 const key: [32]u8 = @splat(0x69);
563 const nonce: [8]u8 = @splat(0x42);561 const nonce: [8]u8 = @splat(0x42);
564 const msg: [20]u8 = @splat(0);562 const msg: [20]u8 = @splat(0);
...@@ -604,8 +602,6 @@ test "xsalsa20poly1305 secretbox" {...@@ -604,8 +602,6 @@ test "xsalsa20poly1305 secretbox" {
604}602}
605603
606test "xsalsa20poly1305 box" {604test "xsalsa20poly1305 box" {
607 if (builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/24299
608
609 const io = std.testing.io;605 const io = std.testing.io;
610 var msg: [100]u8 = undefined;606 var msg: [100]u8 = undefined;
611 var msg2: [msg.len]u8 = undefined;607 var msg2: [msg.len]u8 = undefined;
...@@ -621,8 +617,6 @@ test "xsalsa20poly1305 box" {...@@ -621,8 +617,6 @@ test "xsalsa20poly1305 box" {
621}617}
622618
623test "xsalsa20poly1305 sealedbox" {619test "xsalsa20poly1305 sealedbox" {
624 if (builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/24299
625
626 const io = std.testing.io;620 const io = std.testing.io;
627 var msg: [100]u8 = undefined;621 var msg: [100]u8 = undefined;
628 var msg2: [msg.len]u8 = undefined;622 var msg2: [msg.len]u8 = undefined;
lib/std/crypto/sha3.zig-2
...@@ -583,8 +583,6 @@ test "sha3-384 streaming" {...@@ -583,8 +583,6 @@ test "sha3-384 streaming" {
583}583}
584584
585test "sha3-512 single" {585test "sha3-512 single" {
586 if (builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/25083
587
588 const h1 = "a69f73cca23a9ac5c8b567dc185a756e97c982164fe25859e0d1dcc1475c80a615b2123af1f5f94c11e3e9402c3ac558f500199d95b6d3e301758586281dcd26";586 const h1 = "a69f73cca23a9ac5c8b567dc185a756e97c982164fe25859e0d1dcc1475c80a615b2123af1f5f94c11e3e9402c3ac558f500199d95b6d3e301758586281dcd26";
589 try htest.assertEqualHash(Sha3_512, h1, "");587 try htest.assertEqualHash(Sha3_512, h1, "");
590 const h2 = "b751850b1a57168a5693cd924b6b096e08f621827444f70d884f5d0240d2712e10e116e9192af3c91a7ec57647e3934057340b4cf408d5a56592f8274eec53f0";588 const h2 = "b751850b1a57168a5693cd924b6b096e08f621827444f70d884f5d0240d2712e10e116e9192af3c91a7ec57647e3934057340b4cf408d5a56592f8274eec53f0";
test/behavior/vector.zig-1
...@@ -529,7 +529,6 @@ test "vector division operators" {...@@ -529,7 +529,6 @@ test "vector division operators" {
529 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO529 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
530 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;530 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
531 if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest;531 if (builtin.zig_backend == .stage2_spirv) return error.SkipZigTest;
532 if (comptime builtin.cpu.has(.riscv, .v) and builtin.zig_backend == .stage2_llvm) return error.SkipZigTest; // https://github.com/ziglang/zig/issues/24301
533532
534 const S = struct {533 const S = struct {
535 fn doTheTestDiv(comptime T: type, x: @Vector(4, T), y: @Vector(4, T)) !void {534 fn doTheTestDiv(comptime T: type, x: @Vector(4, T), y: @Vector(4, T)) !void {