Skip to content

cgen,slow_tests: add riscv64 inline asm support, add tests#26050

Merged
spytheman merged 2 commits into
vlang:masterfrom
tankf33der:rv64_asm
Dec 20, 2025
Merged

cgen,slow_tests: add riscv64 inline asm support, add tests#26050
spytheman merged 2 commits into
vlang:masterfrom
tankf33der:rv64_asm

Conversation

@tankf33der

Copy link
Copy Markdown
Contributor

I am conducting an audit of all inline assembler support for each architecture and tests, and will create PRs as I find things that need to be fixed.

Lets add riscv64 inline asm support.
Patch and tests created on real riscv64 environment (ubuntu 24.04.3) under qemu.
Tests works under gcc and clang.

One could nitpick about the test file name asm_test.rv64.v, but I chose the name based on the actual architecture name inside sources, all other numerous variations are aliases.

@spytheman

Copy link
Copy Markdown
Contributor

Please also add ./v test vlib/v/slow_tests/assembly to the end of .github/workflows/riscv64_linux_ci.yml too, if you add such tests.

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you @tankf33der .
Excellent work.

@spytheman spytheman merged commit 989ebe1 into vlang:master Dec 20, 2025
85 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