Repository navigation
Conversation
bdash
added this pull request to stack #8610
October 1, 2026 17:11
`STADD`, `STCLR`, `STEOR` and `STSET` took their store size from the address register, so the 32-bit forms stored 8 bytes. `SWP` loaded into Rt before storing Rs, so it stored the loaded value when the two were the same register. It now loads into a temporary first, as the other atomics do.
The `SMAX`, `SMIN`, `UMAX`, `UMIN` and `ABS` cases lift the FEAT_CSSC scalar forms directly and lifted every other encoding as unimplemented, which skipped the ACLE intrinsic fallback. The Neon forms now lift to their intrinsics, such as `vminq_u32`, as other vector instructions do.
bdash
force-pushed
the
test_aarch64_lifting_fixes
branch
from
October 6, 2026 04:33
5839934 to
3908f7e
Compare
zznop
self-requested a review
October 8, 2026 16:57
zznop
approved these changes
Oct 8, 2026
zznop
left a comment
Member
There was a problem hiding this comment.
Approving this. Just a couple of small recommended changes.
Member
There was a problem hiding this comment.
Recommend updating this comment. It says that vector forms other than cnt "are left unimplemented", which is no longer the case.
| @@ -3324,101 +3324,132 @@ | |||
|
|
|||
| tests_swp = [ | |||
Member
There was a problem hiding this comment.
Recommend adding a test that demonstrates the register overlap that motivated the fix. Like swp x8, x8, [x8] for example.
- SWP loaded into Rt before storing Rs, so it stored the loaded value when the two were the same register.
This branch has not been deployed
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.
SMAX,SMIN,UMAX,UMINandABSwere unintentionally skipping the fallback to intrinsics for their vector forms.STADD,STCLR,STEOR, andSTSET) were using the size of the wrong operand for the store's size.SWPloaded into Rt before storing Rs, so it stored the loaded value when the two were the same register.