Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ldapur instruction #91652

Merged
merged 1 commit into from
Sep 6, 2023
Merged

Fix ldapur instruction #91652

merged 1 commit into from
Sep 6, 2023

Conversation

EgorBo
Copy link
Member

@EgorBo EgorBo commented Sep 6, 2023

Fixes #91648
Fixes #91647

The issue is that LDAPUR doesn't support fp regs, I made a small clean up and now it should ignore those (just like for existing ldar)

PTAL @BruceForstall @TIHan @dotnet/jit-contrib

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Sep 6, 2023
@ghost ghost assigned EgorBo Sep 6, 2023
@ghost
Copy link

ghost commented Sep 6, 2023

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #91648
Fixes #91647

LDAPUR* doesn't support fp registers (so we'll fallback to ldr+dmb for them). Also I added "addrIsAligned" check that we already have for ldar (which might fault on mis-aligned access, e.g.)

PTAL @BruceForstall @TIHan @dotnet/jit-contrib

Author: EgorBo
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

Copy link
Member

@BruceForstall BruceForstall left a comment

Choose a reason for hiding this comment

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

Seems like all the cases could check genIsValidIntReg(targetReg) but I guess since there aren't float versions of the 'h' and 'b' versions you don't need to, but it's somewhat confusing to have to remember that's why the check is only in one place.

@BruceForstall BruceForstall merged commit e33f7e6 into dotnet:main Sep 6, 2023
127 checks passed
@EgorBo EgorBo deleted the fix-ldapur branch September 6, 2023 10:09
@ghost ghost locked as resolved and limited conversation to collaborators Oct 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
2 participants