Skip to content

Integrate stdarch tests for aarch64#1667

Open
CathalMullan wants to merge 1 commit into
rust-lang:mainfrom
CathalMullan:stdarch
Open

Integrate stdarch tests for aarch64#1667
CathalMullan wants to merge 1 commit into
rust-lang:mainfrom
CathalMullan:stdarch

Conversation

@CathalMullan

Copy link
Copy Markdown
Contributor

Had a go at wiring up stdarch. Runs the core_arch and intrinsic-test test suites.

Looked into x86 as well. It had more hard errors to resolve up front, so opted to stick with aarch64 for now.

The skip mechanism for these may be a little cumbersome to maintain.
Maybe making the tests opt-in rather than opt-out would be the better approach?

Comment thread build_system/tests.rs
"stdarch",
);

static STDARCH: CargoProject = CargoProject::new(STDARCH_REPO.source_dir(), "stdarch_target");

@bjorn3 bjorn3 Jun 14, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It should be possible to use the version from the standard library sources just like for portable-simd.

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Looks like the stdarch intrinsic-test crate gets stripped from the source before bundling: https://github.com/rust-lang/rust/blob/main/src/bootstrap/src/core/build_steps/dist.rs#L1204-L1208

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Right, I added those exclusions myself 🤦

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Turns out this is outdated anyways, the heavy intrinsics data now lives in library/stdarch/intrinsics_data, which isn't stripped. Also looks to be smaller than the 30MB it was in the past, around 12MB now, compresses to 300KB.

Would be simpler to remove the filter from upstream.

@bjorn3

bjorn3 commented Jun 23, 2026

Copy link
Copy Markdown
Member

Maybe making the tests opt-in rather than opt-out would be the better approach?

Yeah, I think that would work better. Aside from currently being a shorter list, it also avoids mistakenly thinking a new failing test got added that can be disabled just fine rather than an existing test now failing.

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