Repository navigation
Undo float->small integer saturation workaround - #133666
Merged
Merged
Conversation
The repo builds with .NET 11 RC1.
MichalStrehovsky
requested review from
tannergooding
and
a lite review from Copilot
September 11, 2026 05:40
|
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. |
Contributor
|
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib |
Contributor
There was a problem hiding this comment.
🟡 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, andconv.u2conversions. - 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
jtschuster
pushed a commit
to jtschuster/runtime
that referenced
this pull request
Sep 18, 2026
The repo builds with .NET 11 RC1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The repo builds with .NET 11 RC1.