Armv8.1-M: Add MVE Keccak-f1600 x4 implementation #911
Merged
hanno-becker merged 4 commits intomainfrom Feb 14, 2026
Merged
Conversation
Contributor
CBMC Results (ML-DSA-65)Full Results (175 proofs)
|
Contributor
CBMC Results (ML-DSA-44)
Full Results (175 proofs)
|
Contributor
CBMC Results (ML-DSA-87)Full Results (175 proofs)
|
6474874 to
d3bec89
Compare
d3bec89 to
8283e45
Compare
…ends only Unit tests for Backends not support arthmetic do not use various i32 helper functions resulting in unused function warnings. This commit fixes that by introducing appropriate guards. chknorm is an outlier here - it only uses generate_i32_array_ranged, but not the other functions. We, hence, need 3 different guards that include/exclude chknorm accordingly. - Port of pq-code-package/mlkem-native@33c4af5 Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
Test both optimized and non-optimized builds on M55-AN547. - Port of pq-code-package/mlkem-native@4215daf Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
Add 4-way parallel Keccak-f1600 permutation for Armv8.1-M with MVE, using bit-interleaved state representation. - Add keccak_f1600_x4_mve.S: MVE assembly for 4-way Keccak - Add keccak_f1600_x4_mve.c: C wrapper with temporary bit-interleaving (to be eliminated once we have XORBytes and ExtractBytes implementations handling the bitinterleaving) - Adjust simpasm to support Armv8.1-M Thumb assembly simplification - Resolves #908 - Port of pq-code-package/mlkem-native@065c735 Co-Authored-By: Brendan Moran <brendan.moran@arm.com> Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
The Armv8.1-M + MVE backend is still in active development and has not undergone the same level of audit as the rest of the code. This commit extends the documentation to make this clear. The commit also disables the Armv8.1-M + MVE backend by default, and instead explicitly enables it in the an547 baremetal Makefile. - Port of pq-code-package/mlkem-native@9d2f1c2 Signed-off-by: Matthias J. Kannwischer <matthias@kannwischer.eu>
8283e45 to
68e199d
Compare
hanno-becker
approved these changes
Feb 14, 2026
Contributor
hanno-becker
left a comment
There was a problem hiding this comment.
This appears to be a faithful port. I tested it locally and confirmed that the assembly is indeed being used. A minor inconvenience is that CTRL-C does not work to interrupt QEMU (and hence, the tests), but that is not specific to this PR I believe and can be addressed separately.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.