authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-07 03:48:50+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-07 06:15:11+02:00
log57c0a8c9b4eb13b4633842f0cee499243ab2d0e0
treefae140d87995b6b89822c76f92a6c3a0c3344dc4
parent2d8955ff330c809b4a0e9d9a0f8f667586b715e0
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.crypto.ml_dsa: disable tests affected by an llvm 23 powerpc regression

https://github.com/llvm/llvm-project/issues/229620

1 files changed, 6 insertions(+), 0 deletions(-)

lib/std/crypto/ml_dsa.zig+6
...@@ -2497,6 +2497,8 @@ test "polyPackT1 / polyUnpackT1 roundtrip" {...@@ -2497,6 +2497,8 @@ test "polyPackT1 / polyUnpackT1 roundtrip" {
2497}2497}
24982498
2499test "polyPackT0 / polyUnpackT0 roundtrip" {2499test "polyPackT0 / polyUnpackT0 roundtrip" {
2500 if (builtin.zig_backend == .stage2_llvm and builtin.target.cpu.arch.isPowerpc64()) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/229620
2501
2500 // Create a test polynomial with coefficients in (Q-2^12, Q+2^12]2502 // Create a test polynomial with coefficients in (Q-2^12, Q+2^12]
2501 // This is the range (-2^12, 2^12] represented as unsigned around Q2503 // This is the range (-2^12, 2^12] represented as unsigned around Q
2502 const bound = 1 << 12; // 2^(D-1) where D=132504 const bound = 1 << 12; // 2^(D-1) where D=13
...@@ -2846,6 +2848,8 @@ fn testKeyGenerationBasic(comptime MlDsa: type, seed: [32]u8) !void {...@@ -2846,6 +2848,8 @@ fn testKeyGenerationBasic(comptime MlDsa: type, seed: [32]u8) !void {
2846}2848}
28472849
2848test "Key generation basic - all variants" {2850test "Key generation basic - all variants" {
2851 if (builtin.zig_backend == .stage2_llvm and builtin.target.cpu.arch.isPowerpc64()) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/229620
2852
2849 inline for (.{2853 inline for (.{
2850 .{ .variant = MLDSA44, .seed_byte = 0x44 },2854 .{ .variant = MLDSA44, .seed_byte = 0x44 },
2851 .{ .variant = MLDSA65, .seed_byte = 0x65 },2855 .{ .variant = MLDSA65, .seed_byte = 0x65 },
...@@ -2857,6 +2861,8 @@ test "Key generation basic - all variants" {...@@ -2857,6 +2861,8 @@ test "Key generation basic - all variants" {
2857}2861}
28582862
2859test "Key generation determinism" {2863test "Key generation determinism" {
2864 if (builtin.zig_backend == .stage2_llvm and builtin.target.cpu.arch.isPowerpc64()) return error.SkipZigTest; // https://github.com/llvm/llvm-project/issues/229620
2865
2860 const seed = [_]u8{ 0x12, 0x34, 0x56, 0x78 } ++ @as([28]u8, @splat(0xAB));2866 const seed = [_]u8{ 0x12, 0x34, 0x56, 0x78 } ++ @as([28]u8, @splat(0xAB));
28612867
2862 // Generate two key pairs from the same seed2868 // Generate two key pairs from the same seed