Skip to content

[RyuJIT Wasm] Add JIT\HardwareIntrinsics\Wasm Tests - #130653

Merged
adamperlin merged 8 commits into
dotnet:mainfrom
adamperlin:adamperlin/wasm-simd-bringup-tests
Jul 15, 2026
Merged

adamperlin merged 8 commits into
dotnet:mainfrom
adamperlin:adamperlin/wasm-simd-bringup-tests

Conversation

@adamperlin

Copy link
Copy Markdown
Contributor

This PR ports PackedSimdTests.cs to the JIT/HardwareIntrinsics test tree. Note that it is duplicating the tests in

for now, but the tests may diverge in the future.

Copilot AI review requested due to automatic review settings July 13, 2026 23:54
@github-actions github-actions Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jul 13, 2026
@adamperlin adamperlin added the arch-wasm WebAssembly architecture label Jul 13, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.

Copilot AI 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.

Pull request overview

Adds a new Wasm-specific PackedSimd test suite under the CoreCLR src/tests/JIT/HardwareIntrinsics tree, along with wrapper projects and build gating so the tests only build/run on Wasm targets.

Changes:

  • Introduces PackedSimdTests.cs (ported from the libraries test suite) under src/tests/JIT/HardwareIntrinsics/Wasm/PackedSimd/.
  • Adds per-test _r / _ro projects plus new HardwareIntrinsics_Wasm_{r,ro}.csproj merged-runner wrapper projects.
  • Adds Wasm-only build gating via HWITestsWasmOnly and CLRTestTargetUnsupported.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/tests/JIT/HardwareIntrinsics/Wasm/PackedSimd/PackedSimdTests.cs Adds the actual PackedSimd functional test coverage (xUnit [Fact] tests).
src/tests/JIT/HardwareIntrinsics/Wasm/PackedSimd/PackedSimdTests_ro.csproj Adds optimized (ro) project wrapper for the new test file.
src/tests/JIT/HardwareIntrinsics/Wasm/PackedSimd/PackedSimdTests_r.csproj Adds non-optimized (r) project wrapper for the new test file.
src/tests/JIT/HardwareIntrinsics/Wasm/Directory.Build.props Marks the Wasm subtree as Wasm-only (HWITestsWasmOnly).
src/tests/JIT/HardwareIntrinsics/HardwareIntrinsics_Wasm_ro.csproj Adds the Wasm wrapper runner for _ro projects.
src/tests/JIT/HardwareIntrinsics/HardwareIntrinsics_Wasm_r.csproj Adds the Wasm wrapper runner for non-_ro projects.
src/tests/JIT/HardwareIntrinsics/Directory.Build.targets Applies Wasm-only CLRTestTargetUnsupported gating when HWITestsWasmOnly is set.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Copilot AI review requested due to automatic review settings July 14, 2026 00:02
@adamperlin
adamperlin marked this pull request as ready for review July 14, 2026 00:05

Copilot AI 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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 7 comments.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Copilot AI review requested due to automatic review settings July 14, 2026 00:14

Copilot AI 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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings July 14, 2026 00:50

Copilot AI 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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

@radekdoulik radekdoulik left a comment

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.

Besides the copilot comments about unused vars and 32/64bits it LGTM

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Copilot AI review requested due to automatic review settings July 14, 2026 18:37

Copilot AI 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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Copilot AI review requested due to automatic review settings July 14, 2026 18:59

Copilot AI 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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Copilot AI review requested due to automatic review settings July 14, 2026 19:19

Copilot AI 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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

@pavelsavara

Copy link
Copy Markdown
Member

Could you please enable them (remove ActiveIssue)

[ActiveIssue("https://github.com/dotnet/runtime/issues/123011", typeof(PlatformDetection), nameof(PlatformDetection.IsBrowser), nameof(PlatformDetection.IsCoreCLR))]

@adamperlin

Copy link
Copy Markdown
Contributor Author

Could you please enable them (remove ActiveIssue)

I'm not sure they're ready to be enabled yet (they wouldn't pass), I'm mostly porting these over to make it easier to finish SIMD development. I can remove the active issue once SIMD is complete!

@adamperlin

Copy link
Copy Markdown
Contributor Author

/ba-g infra failures

@adamperlin
adamperlin merged commit ae59a93 into dotnet:main Jul 15, 2026
92 of 99 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 16, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants