Skip to content

AES clang: make x volatile in pre-fetch functions#9783

Merged
dgarske merged 1 commit intowolfSSL:masterfrom
SparkiDev:aes_clang_volatile
Feb 17, 2026
Merged

AES clang: make x volatile in pre-fetch functions#9783
dgarske merged 1 commit intowolfSSL:masterfrom
SparkiDev:aes_clang_volatile

Conversation

@SparkiDev
Copy link
Contributor

Description

Latest version of clang with optimization turned right up will make the pre-fetch functions return 0.
The pre-fetch functions are there to ensure tables are all in cache not to calculate a value.

Fixes #9781

Testing

Standard

Latest version of clang with optimization turned right up will make the
pre-fetch functions return 0.
The pre-fetch functions are there to ensure tables are all in cache not
to calculate a value.
@dgarske dgarske merged commit a0a7625 into wolfSSL:master Feb 17, 2026
569 of 570 checks passed
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.

[Bug]: WolfSSL software AES cache prefetch can be optimized out by compiler

3 participants