Skip to content

Conversation

MihaZupan
Copy link
Member

Fixes #118022

@MihaZupan MihaZupan added this to the 10.0.0 milestone Jul 24, 2025
@MihaZupan MihaZupan requested a review from pavelsavara July 24, 2025 17:53
@MihaZupan MihaZupan self-assigned this Jul 24, 2025
@Copilot Copilot AI review requested due to automatic review settings July 24, 2025 17:53
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.

Pull Request Overview

This PR fixes SearchValues assertions that were failing on WebAssembly (WASM) by updating the Debug.Assert conditions to properly account for WASM's PackedSimd support alongside ARM's AdvSimd support.

  • Updates comments to mention WASM alongside ARM for non-ASCII value usage
  • Modifies assertion logic to check for both AdvSimd.IsSupported and PackedSimd.IsSupported
  • Adds an additional assertion in AsciiCharSearchValues to validate character range constraints

Reviewed Changes

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

File Description
AsciiCharSearchValues.cs Updates assertion and comment to include WASM PackedSimd support, adds range validation
AsciiByteSearchValues.cs Updates assertion and comment to include WASM PackedSimd support

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-memory
See info in area-owners.md if you want to be subscribed.

@MihaZupan MihaZupan enabled auto-merge (squash) July 24, 2025 17:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ReadOnlySpanTests.TestNoMatchValuesLargerLastIndexOfAny_Byte_ManyByte
3 participants