Skip to content

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

@ghost ghost 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 AI review requested due to automatic review settings April 30, 2025 19:22
Copy link
Contributor

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
@dotnet-policy-service
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
Copy link
Member Author

lewing commented Aug 5, 2025

/backport to release/9.0-staging

@github-actions github-actions bot unlocked this conversation Aug 5, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Aug 5, 2025

Started backporting to release/9.0-staging: https://github.com/dotnet/runtime/actions/runs/16762870848

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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