Skip to content

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.

@ghost
Copy link

ghost commented Jul 21, 2022

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?

_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