Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[wasm][aot] Reenable AOT System.Runtime.Intrinsics/tests and fix problems that exposed #115204

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

Merged
merged 6 commits into from
May 5, 2025

Conversation

lewing
Copy link
Member

@lewing lewing commented Apr 30, 2025

Enable System.Runtime.Intrinsics/tests in wasm smoke tests then fix the Shuffle intrinsics crash the tests exposed. See #115062 for details.

The crash would happen when a non-constant index vector was passed to the llvm shuffle intrinsic which was exposed when the ShuffleNative path was added to the tests. The PR works around it by using the swizzle intrinsic which does not require a const index vector. If this does cause a regression it we should be able to restore the original implementation when we can verify a constant index vector is being passed.

This also fixes the PackedSimd.Min/Max intrinsic implementation which had accidentally reversed min and max.

Fixes #115203

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Apr 30, 2025
@lewing lewing added area-Build-mono and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Apr 30, 2025
@lewing lewing marked this pull request as ready for review April 30, 2025 19:22
@Copilot Copilot AI review requested due to automatic review settings April 30, 2025 19:22
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • src/libraries/tests.proj: Language not supported

@lewing lewing assigned radekdoulik and unassigned radekdoulik Apr 30, 2025
@lewing lewing requested a review from radekdoulik April 30, 2025 19:24
@lewing
Copy link
Member Author

lewing commented May 1, 2025

the crashing tests are in the range disabled by 2745546 I haven't narrowed it down more than that yet

@lewing lewing requested a review from kg May 1, 2025 19:23
@lewing
Copy link
Member Author

lewing commented May 4, 2025

The swizzle change has the potential to cause regressions, if it does I believe I can fix them but I would like to get benchmarks on this version first

@lewing lewing changed the title [wasm] Enable System.Runtime.Intrinsics/tests in wasm smoke tests [wasm] Enable System.Runtime.Intrinsics/tests and fix problems that exposed May 4, 2025
@lewing lewing added this to the 10.0.0 milestone May 4, 2025
@lewing lewing changed the title [wasm] Enable System.Runtime.Intrinsics/tests and fix problems that exposed [wasm][aot] Reenable AOT System.Runtime.Intrinsics/tests and fix problems that exposed May 4, 2025
@lewing lewing added area-Codegen-AOT-mono arch-wasm WebAssembly architecture os-browser Browser variant of arch-wasm labels May 4, 2025
Copy link
Contributor

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

@lewing
Copy link
Member Author

lewing commented May 5, 2025

/ba-g changes are only in wasm paths, other failures are not related

@lewing lewing merged commit e8617b7 into dotnet:main May 5, 2025
113 of 125 checks passed
@lewing lewing deleted the wasm-smoke branch May 5, 2025 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-Build-mono area-Codegen-AOT-mono os-browser Browser variant of arch-wasm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[mono][aot] aot compiler crash
2 participants