Skip to content

loongarch: Scaffold self-hosted LoongArch backend #24182

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

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

xtexx
Copy link
Contributor

@xtexx xtexx commented Jun 14, 2025

This PR adds a self-hosted LoongArch64 backend.

The backend currently implements only a few features.

Test runner is working, but due to the very limited number of passing behavior tests, the backend is not added to the test target list.

Although it is foreseeable that I will not have much time to work on this backend in the coming one year due to my study, I will try to keep the backend working and expand its features.

@xtexx xtexx force-pushed the loongarch64 branch 2 times, most recently from 32b594a to b43554c Compare June 14, 2025 12:46
@alexrp alexrp self-requested a review June 14, 2025 16:59
@xtexx xtexx changed the title loongarch64: Scaffold self-hosted LoongArch64 backend loongarch: Scaffold self-hosted LoongArch backend Jun 14, 2025
@xtexx xtexx force-pushed the loongarch64 branch 2 times, most recently from 19271e9 to ef93148 Compare June 14, 2025 23:23
@xtexx
Copy link
Contributor Author

xtexx commented Jun 15, 2025 via email

@alexrp
Copy link
Member

alexrp commented Jun 16, 2025

cc @jacobly0 to review the general structure of the new backend.

@alexrp alexrp requested a review from jacobly0 June 16, 2025 05:30
@jacobly0
Copy link
Member

You might want to git mv src/arch/loongarch64 src/codegen/loongarch now to avoid annoying conflicts when somebody else does it later.

@xtexx xtexx force-pushed the loongarch64 branch 2 times, most recently from af7f2a6 to b9936e7 Compare June 20, 2025 13:41
@xtexx
Copy link
Contributor Author

xtexx commented Jun 20, 2025

I had just force-pushed to rebase onto master, moving src/arch/loongarch64 to src/arch/loongarch, adding basic support for LA32.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants