Skip to content

Dev/reucru01/msvc sve ldst tests fix#3

Closed
CrooseGit wants to merge 3 commits into
mainfrom
dev/reucru01/msvc-sve-ldst-tests-fix
Closed

Dev/reucru01/msvc sve ldst tests fix#3
CrooseGit wants to merge 3 commits into
mainfrom
dev/reucru01/msvc-sve-ldst-tests-fix

Conversation

@CrooseGit
Copy link
Copy Markdown
Owner

No description provided.

@CrooseGit CrooseGit force-pushed the dev/reucru01/msvc-sve-ldst-tests-fix branch 2 times, most recently from 323a384 to 015a1a2 Compare May 28, 2026 10:50
CrooseGit added 2 commits May 28, 2026 11:51
The tests were failing as sometimes the FFR was being clobbered
between the `svsetffr` and `svrdffr`.
When `as_ptr()` is called on the `LazyLock` data for the first time one
test thread will initialise it, while the others are blocked and wait.
The wait/block is achieved with a syscall which on windows just so
happens to sometimes clobber the FFR, as it is free to do as the FFR is
caller saved.
 
To fix this, we just ensure that the `as_ptr` is not called between the
set and read.
@CrooseGit CrooseGit force-pushed the dev/reucru01/msvc-sve-ldst-tests-fix branch from 015a1a2 to 710c4c6 Compare May 28, 2026 10:51
@CrooseGit CrooseGit closed this May 28, 2026
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.

1 participant