Skip to content

JIT: Preserve Half estimate ISA dependencies in ReadyToRun - #135692

Merged
tannergooding merged 1 commit into
dotnet:mainfrom
tannergooding:tannergooding-half-estimate-readytorun-policy
Oct 13, 2026
Merged

tannergooding merged 1 commit into
dotnet:mainfrom
tannergooding:tannergooding-half-estimate-readytorun-policy

Conversation

@tannergooding

Copy link
Copy Markdown
Member

Preserve negative ISA prerequisites when importing Half.ReciprocalEstimate and Half.ReciprocalSqrtEstimate as hardware intrinsics. ReadyToRun can then guard estimate-dependent code according to the existing nondeterministic-intrinsic policy, while precise Half.Sqrt remains unaffected.

Add focused regression coverage for the ReadyToRun ISA fixups and non-ReadyToRun Half estimate behavior.

Validation

  • python3 src\coreclr\scripts\jitformat.py -r . -o windows -a x64 — passed.
  • build.cmd clr.jit -rc checked and build.cmd clr.tools -rc checked — passed.
  • Focused src\tests\build.cmd -Test readytorun\HardwareIntrinsics\X86\HalfEstimateR2R.csproj -Test JIT\Regression_o_1\Regression_o_1.csproj x64 Checked -Priority 1 — passed.
  • HalfEstimateR2R.cmd — passed; non-ReadyToRun TestHalfEstimates — 1 passed, 0 failed (verified from test results XML).

Resolves #133962

Note

This pull request description was generated with GitHub Copilot.

@github-actions github-actions Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Oct 13, 2026
@azure-pipelines

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

@tannergooding
tannergooding requested a review from EgorBo October 13, 2026 18:21
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@tannergooding
tannergooding merged commit 55c3a69 into dotnet:main Oct 13, 2026
135 of 137 checks passed
@tannergooding
tannergooding deleted the tannergooding-half-estimate-readytorun-policy branch October 13, 2026 22:14
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 14, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JIT: (bug) Half reciprocal estimate intrinsics bypass ReadyToRun non-deterministic intrinsic policy

2 participants