Skip to content

Add basic CI for -marm codegen using qemu#23155

Open
dkorpel wants to merge 2 commits into
dlang:masterfrom
dkorpel:arm-ci
Open

Add basic CI for -marm codegen using qemu#23155
dkorpel wants to merge 2 commits into
dlang:masterfrom
dkorpel:arm-ci

Conversation

@dkorpel
Copy link
Copy Markdown
Contributor

@dkorpel dkorpel commented May 21, 2026

Add a dshell test for the Aarch64 code generation using qemu.

Module comment of arm_cross.d:


Cross-compile AArch64 runnable tests and execute them under qemu-aarch64.

Can be run directly or via test runner:

rdmd compiler/test/dshell/arm_cross.d
compiler/test/run.d arm

Or via the test runner:
Install prerequisites:

Debian/Ubuntu:

sudo apt install qemu-user clang lld gcc-aarch64-linux-gnu

Arch Linux:

sudo pacman -S qemu-user clang lld aarch64-linux-gnu-gcc

Currently these files pass:

runnable/ai
runnable/arm
runnable/bcraii
runnable/bcraii2
runnable/opcolon
runnable/powinline
runnable/test18472
runnable/test21416
runnable/test24884

Eventually, this list should be inverted from 'known successes' to 'known failures', and the test logic should be integrated in d_do_test.d. At this early stage however, it's better to have a separate test script.

@dlang-bot
Copy link
Copy Markdown
Contributor

Thanks for your pull request and interest in making D better, @dkorpel! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the coverage diff by visiting the details link of the codecov check)
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#23155"

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dkorpel dkorpel marked this pull request as ready for review May 21, 2026 12:13
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