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 {
17081708
17091709test Integer {
17101710 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
17131712 try testStaticBitSet(Integer(0));
17141713 try testStaticBitSet(Integer(1));
lib/std/crypto/ascon.zig-2
......@@ -980,8 +980,6 @@ test "Ascon-CXOF128 with customization" {
980980}
981981
982982test "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
985983 const key = [_]u8{ 0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF, 0xFE, 0xDC, 0xBA, 0x98, 0x76, 0x54, 0x32, 0x10 };
986984 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 {
557557const htest = @import("test.zig");
558558
559559test "(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
562560 const key: [32]u8 = @splat(0x69);
563561 const nonce: [8]u8 = @splat(0x42);
564562 const msg: [20]u8 = @splat(0);
......@@ -604,8 +602,6 @@ test "xsalsa20poly1305 secretbox" {
604602}
605603
606604test "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
609605 const io = std.testing.io;
610606 var msg: [100]u8 = undefined;
611607 var msg2: [msg.len]u8 = undefined;
......@@ -621,8 +617,6 @@ test "xsalsa20poly1305 box" {
621617}
622618
623619test "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
626620 const io = std.testing.io;
627621 var msg: [100]u8 = undefined;
628622 var msg2: [msg.len]u8 = undefined;
lib/std/crypto/sha3.zig-2
......@@ -583,8 +583,6 @@ test "sha3-384 streaming" {
583583}
584584
585585test "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
588586 const h1 = "a69f73cca23a9ac5c8b567dc185a756e97c982164fe25859e0d1dcc1475c80a615b2123af1f5f94c11e3e9402c3ac558f500199d95b6d3e301758586281dcd26";
589587 try htest.assertEqualHash(Sha3_512, h1, "");
590588 const h2 = "b751850b1a57168a5693cd924b6b096e08f621827444f70d884f5d0240d2712e10e116e9192af3c91a7ec57647e3934057340b4cf408d5a56592f8274eec53f0";
test/behavior/vector.zig-1
......@@ -529,7 +529,6 @@ test "vector division operators" {
529529 if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
530530 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
531531 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
534533 const S = struct {
535534 fn doTheTestDiv(comptime T: type, x: @Vector(4, T), y: @Vector(4, T)) !void {