Skip to content

Undo float->small integer saturation workaround - #133666

Merged
MichalStrehovsky merged 1 commit into
dotnet:mainfrom
MichalStrehovsky:undoclamp
Sep 14, 2026
Merged

MichalStrehovsky merged 1 commit into
dotnet:mainfrom
MichalStrehovsky:undoclamp

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

The repo builds with .NET 11 RC1.

The repo builds with .NET 11 RC1.
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
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.

🟡 Changes recommended

Add regression coverage for boundary, out-of-range, and NaN conversion cases.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Removes the NativeAOT float-to-small-integer saturation workaround, relying on .NET 11 conversion semantics.

Changes:

  • Simplifies conv.i1, conv.i2, conv.u1, and conv.u2 conversions.
  • Removes obsolete clamping, NaN handling, and workaround comments.
File summaries
File Summary
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/TypePreinit.cs Removes the saturation workaround; add boundary, out-of-range, and NaN coverage for float and double conversions.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

@jkotas jkotas 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.

Thanks!

@MichalStrehovsky
MichalStrehovsky merged commit cd844f7 into dotnet:main Sep 14, 2026
120 checks passed
@MichalStrehovsky
MichalStrehovsky deleted the undoclamp branch September 14, 2026 05:51
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 15, 2026
jtschuster pushed a commit to jtschuster/runtime that referenced this pull request Sep 18, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 15, 2026
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.

3 participants