Skip to content

Regenerate armasm after scripts#625#10916

Open
mattia-moffa wants to merge 1 commit into
wolfSSL:masterfrom
mattia-moffa:20260715-armasm-fix-625
Open

Regenerate armasm after scripts#625#10916
mattia-moffa wants to merge 1 commit into
wolfSSL:masterfrom
mattia-moffa:20260715-armasm-fix-625

Conversation

@mattia-moffa

Copy link
Copy Markdown
Member

Regenerates armasm after the fix in wolfssl/scripts#625

Fixes zd#22040

Testing

armasm-test.tar.gz

@mattia-moffa mattia-moffa self-assigned this Jul 15, 2026
Copilot AI review requested due to automatic review settings July 15, 2026 19:03
@mattia-moffa mattia-moffa force-pushed the 20260715-armasm-fix-625 branch from ae80fe4 to 06a2103 Compare July 15, 2026 19:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR regenerates several ARM Thumb-2 inline-assembly “*_asm_c.c” sources after an upstream armasm generator fix (wolfssl/scripts#625), primarily adjusting argument handling when WOLFSSL_NO_VAR_ASSIGN_REG is in effect and normalizing operand usage inside the asm blocks.

Changes:

  • Updated SHA3, Poly1305, ML-KEM, and ChaCha Thumb-2 inline asm wrappers to support the WOLFSSL_NO_VAR_ASSIGN_REG configuration by marshalling arguments through a local L_asm_args array.
  • Converted many memory operands from named-input constraints (e.g., %[state]) to fixed-register addressing (e.g., [r0, #offset]) after explicitly loading arguments into r0..rN.
  • Adjusted inline-asm operand lists and clobber lists accordingly for both WOLFSSL_NO_VAR_ASSIGN_REG and non-WOLFSSL_NO_VAR_ASSIGN_REG builds.

Reviewed changes

Copilot reviewed 5 out of 9 changed files in this pull request and generated no comments.

File Description
wolfcrypt/src/port/arm/thumb2-sha3-asm_c.c Regenerated SHA3 Thumb-2 asm wrapper to load args into r0/r1 under WOLFSSL_NO_VAR_ASSIGN_REG and use fixed-register addressing.
wolfcrypt/src/port/arm/thumb2-poly1305-asm_c.c Regenerated Poly1305 Thumb-2 asm wrappers to marshal args via L_asm_args under WOLFSSL_NO_VAR_ASSIGN_REG and update register usage/clobbers.
wolfcrypt/src/port/arm/thumb2-mlkem-asm_c.c Regenerated ML-KEM Thumb-2 asm wrappers to use L_asm_args marshalling under WOLFSSL_NO_VAR_ASSIGN_REG and fixed-register addressing.
wolfcrypt/src/port/arm/thumb2-chacha-asm_c.c Regenerated ChaCha Thumb-2 asm wrappers to marshal args via L_asm_args under WOLFSSL_NO_VAR_ASSIGN_REG and shift to fixed-register addressing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mattia-moffa mattia-moffa changed the title Regenerate armasm after #625 Regenerate armasm after scripts#625 Jul 16, 2026
@mattia-moffa

Copy link
Copy Markdown
Member Author

Jenkins retest this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants