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

more RISC-V backend progress #20474

Merged
merged 11 commits into from
Jul 17, 2024
Merged

more RISC-V backend progress #20474

merged 11 commits into from
Jul 17, 2024

Conversation

Rexicon226
Copy link
Contributor

@Rexicon226 Rexicon226 commented Jul 2, 2024

  • added @atomicLoad, @atomicStore, @atomicRmw, @fence
  • made std.simd.suggestVectorLength more accurate for RISC-V
  • implements boiler-plate for RISC-V vectors

1297 passed, 639 failed - 66.99% passing

cc @kubkon

Now we generate debug undefined constants when the user asks for them to dedup across the function decl. This takes 2 instructions instead of 7 in the RISC-V backend.

TODO, we need to dedupe across function decl boundaries.
* the file's doc-comment was misleading and did not focus on the correct aspect of SIMD

* added cpu flag awareness to `suggestVectorLengthForCpu` in order to provide a more accurate vector length
@kubkon kubkon merged commit 9d9b5a1 into ziglang:master Jul 17, 2024
10 checks passed
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.

2 participants