Skip to content

Conversation

lewing
Copy link
Member

@lewing lewing commented Jul 27, 2025

fix some regressions introduced in 0b64041

@Copilot Copilot AI review requested due to automatic review settings July 27, 2025 00: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.

Pull Request Overview

This PR adds PackedSimd aliases for the AddSaturate and SubtractSaturate methods to fix regressions introduced in a previous commit. The changes ensure these saturated arithmetic operations are properly supported in the WASM SIMD interpreter.

Key Changes

  • Added AddSaturate and SubtractSaturate to the PackedSimd alias methods list
  • Included these methods in the SIMD method switch case handling
  • Added method definitions for both operations in the SIMD methods definition file

Reviewed Changes

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

File Description
src/mono/mono/mini/interp/transform-simd.c Adds AddSaturate and SubtractSaturate to alias methods array and switch case handling
src/mono/mono/mini/interp/simd-methods.def Defines AddSaturate and SubtractSaturate SIMD methods

Copy link
Contributor

Tagging subscribers to this area: @BrzVlad, @kotlarmilos
See info in area-owners.md if you want to be subscribed.

@lewing lewing changed the title [wasm] Add PackedSimd aliases for AddSaturate and SubtractSaturate [wasm][interp] Add PackedSimd aliases for AddSaturate and SubtractSaturate Jul 27, 2025
@lewing lewing requested a review from tannergooding July 27, 2025 04:51
@lewing
Copy link
Member Author

lewing commented Jul 27, 2025

@lewing lewing merged commit 0fd7ca0 into dotnet:main Jul 28, 2025
71 checks passed
@lewing lewing deleted the simd-add-sub-sat branch July 28, 2025 14:28
@lewing
Copy link
Member Author

lewing commented Aug 1, 2025

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.

2 participants