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] Fix some errors of the struct argument parsing in LoongArch64PassStructInRegister.cs #98744

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

LuckyXu-HF
Copy link
Contributor

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

Fix some errors of the struct argument parsing in LoongArch64PassStructInRegister.cs

@LuckyXu-HF
Copy link
Contributor Author

hi @shushanhf , @jkotas
Could you please review this PR? Thanks.

@am11 am11 added arch-loongarch64 community-contribution Indicates that the PR has been added by a community member labels Feb 21, 2024
}

Debug.Assert(fieldIndex < numIntroducedFields);
Debug.Assert(fieldIndex <= numIntroducedFields);
Copy link
Member

Choose a reason for hiding this comment

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

Whan can fieldIndex == numIntroducedFields?

Copy link
Contributor Author

@LuckyXu-HF LuckyXu-HF Feb 22, 2024

Choose a reason for hiding this comment

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

fieldIndex may be equal to numIntroducedFields before the condition if (field.IsStatic);
But it can't be equal here. Thank you very much, I will amend it.

{
continue;
return (uint)StructFloatFieldInfoFlags.STRUCT_NO_FLOAT_FIELD;
Copy link
Member

Choose a reason for hiding this comment

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

Should this case be rather handled in the default: case of the switch statement below?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will amend this, thank you!

Copy link
Contributor

@shushanhf shushanhf left a comment

Choose a reason for hiding this comment

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

Thanks.
LGTM

@LuckyXu-HF
Copy link
Contributor Author

hi @jkotas ,Could you please review this PR again ? Thank you very much.

@jkotas jkotas merged commit 5ef47c8 into dotnet:main Feb 26, 2024
107 of 110 checks passed
@LuckyXu-HF LuckyXu-HF deleted the main-LA64-3 branch February 28, 2024 00:58
@github-actions github-actions bot locked and limited conversation to collaborators Mar 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-loongarch64 area-crossgen2-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.

4 participants