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

[LoongArch64] amend the LoongArch64's ABI for GCstress and NullableObject. #72573

Merged
merged 1 commit into from
Jul 22, 2022

Conversation

shushanhf
Copy link
Contributor

@shushanhf shushanhf commented Jul 21, 2022

This is part of the issue #69705 to amend the LA's port.

Amends the LoongArch64's ABI for GCstress and NullableObject.

@HFDude Thanks for your helping fixing nullable testing.

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Jul 21, 2022
@shushanhf
Copy link
Contributor Author

Hi, @jkotas

Could you please review this PR?

@@ -1810,7 +1810,7 @@ bool GcInfoDecoder::IsScratchRegister(int regNum, PREGDISPLAY pRD)
{
_ASSERTE(regNum >= 0 && regNum <= 31);

return (regNum <= 21 && regNum >= 4);
return (regNum <= 21 && ((regNum >= 4) || (regNum == 1)));
Copy link
Member

Choose a reason for hiding this comment

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

Why would one store GC pointers in the return address register?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because the ra may be used as a scratch register at some causes.

@jkotas jkotas merged commit 0e7432f into dotnet:main Jul 22, 2022
@shushanhf shushanhf deleted the LA_amend_ABI branch July 22, 2022 01:06
@ghost ghost locked as resolved and limited conversation to collaborators Aug 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-loongarch64 area-VM-coreclr community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants