Skip to content

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

Merged
jkotas merged 1 commit into
dotnet:mainfrom
shushanhf:LA_amend_ABI
Jul 22, 2022
Merged

[LoongArch64] amend the LoongArch64's ABI for GCstress and NullableObject.#72573
jkotas merged 1 commit into
dotnet:mainfrom
shushanhf:LA_amend_ABI

Conversation

@shushanhf

@shushanhfshushanhf commented Jul 21, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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.

@ghostghost added the community-contribution Indicates that the PR has been added by a community member label Jul 21, 2022
@shushanhf

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
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
Copy Markdown
ContributorAuthor

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:mainJul 22, 2022
@shushanhf
shushanhf deleted the LA_amend_ABI branch July 22, 2022 01:06
@ghostghost locked as resolved and limited conversation to collaborators Aug 21, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-loongarch64area-VM-coreclrcommunity-contributionIndicates 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

@shushanhf@jkotas@teo-tsirpanis