Skip to content

Fix XARCH importation of isPositive and isNegative - #134151

Merged
dhartglassMSFT merged 3 commits into
dotnet:mainfrom
dhartglassMSFT:fix_for_134150
Sep 18, 2026
Merged

dhartglassMSFT merged 3 commits into
dotnet:mainfrom
dhartglassMSFT:fix_for_134150

Conversation

@dhartglassMSFT

Copy link
Copy Markdown
Contributor

JIT expansion of 256b vector floating point IsNegative and IsPositive requires AVX2. Checking with varTypeIsSigned silently let these through when EnableAVX2=0.

fixes #134150

@dhartglassMSFT
dhartglassMSFT requested review from tannergooding and a lite review from Copilot and removed request for Copilot September 17, 2026 19:06
@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 Sep 17, 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.

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

Copilot AI lite review requested due to automatic review settings September 17, 2026 22:25

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 256-bit floating-point sign checks with AVX2 disabled.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Fixes JIT importation of 256-bit vector IsPositive and IsNegative when AVX2 is disabled.

Changes:

  • Requires AVX2 for signed integer and floating-point sign checks.
  • Preserves AVX-only handling for unsigned vectors and Vector.Abs.
File summaries
File Description
src/coreclr/jit/hwintrinsic.cpp Updates AVX2 capability detection for vector sign checks.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread src/coreclr/jit/hwintrinsic.cpp
@dhartglassMSFT
dhartglassMSFT enabled auto-merge (squash) September 17, 2026 23:35
@dhartglassMSFT
dhartglassMSFT merged commit 09b9045 into dotnet:main Sep 18, 2026
134 of 137 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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 importation asserts with EnableAVX2=0

3 participants