Skip to content

Conversation

@shushanhf
Copy link
Contributor

Part6-2: Add the coreclr-vm directory for LoongArch64.

@ghost ghost added community-contribution Indicates that the PR has been added by a community member area-VM-coreclr labels Dec 16, 2021
@dnfadmin
Copy link

dnfadmin commented Dec 16, 2021

CLA assistant check
All CLA requirements met.

@jkotas jkotas changed the title Part6-2: Add the coreclr-vm directory for LoongArch64. [LoongArch64] coreclr-vm directory Dec 16, 2021
Copy link
Contributor

@kant2002 kant2002 left a comment

Choose a reason for hiding this comment

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

Left some comments.

void CopyStructToRegisters(void *src, int fieldBytes)
{
_ASSERTE(IsStructPassedInRegs());
_ASSERTE(m_argLocDescForStructInRegs->m_cFloatReg == 1);
Copy link
Member

@jkotas jkotas Dec 18, 2021

Choose a reason for hiding this comment

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

Where is the case of struct passed in two floating registers handled?

Copy link
Contributor Author

@shushanhf shushanhf Dec 20, 2021

Choose a reason for hiding this comment

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

Where is the case of struct passed in two floating registers handled?

A struct containing just one floating-point real is passed as though it were a standalone floating-point real.
It's related with the ABI, similar with the PR #62893 ,
#62893 (comment)

This case is also the same with the RISC-V: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/blob/master/riscv-cc.adoc

Copy link
Contributor

@kant2002 kant2002 left a comment

Choose a reason for hiding this comment

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

Some comments about compilation issues.

qiaopengcheng and others added 3 commits December 20, 2021 10:32
amend the `ToolBox/superpmi/superpmi-shared/agnostic.h`
after merged `MethodTable::GetLoongArch64PassStructInRegisterFlags()`
and `CEEInfo::getLoongArch64PassStructInRegisterFlags()`
@BruceForstall
Copy link
Contributor

@shushanhf Now that #65738 has merged, this needs to be updated.

@shushanhf
Copy link
Contributor Author

@shushanhf Now that #65738 has merged, this needs to be updated.

OK, Thanks

@BruceForstall
Copy link
Contributor

@jkotas @janvorli Time for another (final?) code review here?

when running hello-world within debug-mode after refacting.
@shushanhf
Copy link
Contributor Author

shushanhf commented Apr 8, 2022

Now I had tested the hello-world passed both the release and debug mode based on the latest main-LoongArch64.

@BruceForstall
Copy link
Contributor

@mangod9 @janvorli @jkotas Is there anything left here to review? (fyi, I just merged the LoongArch64 JIT PR)

@shushanhf shushanhf requested a review from janvorli April 13, 2022 02:46
@shushanhf
Copy link
Contributor Author

@mangod9 @janvorli @jkotas
Could you please give me some advices further?

@shushanhf
Copy link
Contributor Author

shushanhf commented Apr 20, 2022

Hi, @mangod9 @janvorli @jkotas

What should I do for this PR next?
Could you please give me some advices ?

@mangod9
Copy link
Member

mangod9 commented Apr 20, 2022

Hi @shushanhf, sorry for delayed response. We plan to review this again this week and will merge with a green CI. Thanks

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@mangod9
Copy link
Member

mangod9 commented Apr 21, 2022

@mangod9
Copy link
Member

mangod9 commented Apr 21, 2022

Looks to have passed on rerun. So will merge it now.

@mangod9 mangod9 merged commit febeba3 into dotnet:main Apr 21, 2022
@BruceForstall
Copy link
Contributor

@shushanhf Thanks for your patience and response to code review feedback. And congratulations on getting this merged!

@shushanhf shushanhf deleted the main_loongarch64_2 branch May 11, 2022 01:12
@ghost ghost locked as resolved and limited conversation to collaborators Jun 10, 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.

8 participants