Repository navigation
Add regression test for #124749 - #130936
Merged
dhartglassMSFT merged 1 commit intoJul 17, 2026
Merged
dhartglassMSFT merged 1 commit into
dhartglassMSFT merged 1 commit into
Conversation
Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 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: @JulieLeeMSFT, @jakobbotsch |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new JitBlue regression test case to cover a previously-fixed JIT assert scenario involving AVX-512 intrinsics, ensuring the repro remains exercised in CI.
Changes:
- Adds a new JIT regression test project
Runtime_124749with process isolation and tiered compilation disabled. - Adds a new xUnit-based test reproducing the intrinsic pattern and guarding execution on
Avx512CD.VL.IsSupported.
Show a summary per file
| File | Description |
|---|---|
| src/tests/JIT/Regression/JitBlue/Runtime_124749/Runtime_124749.csproj | New test project with required isolation and env var to stabilize JIT behavior for the repro. |
| src/tests/JIT/Regression/JitBlue/Runtime_124749/Runtime_124749.cs | New xUnit regression test exercising the intrinsic sequence and gating on AVX-512 CD+VL support. |
Copilot's findings
- Files reviewed: 2/2 changed files
- Comments generated: 0
Member
Author
|
CC. @dotnet/jit-contrib, @dhartglassMSFT this is just a test only change ensuring the regression is covered for xarch. David fixed the underlying issue in #128962 already, but only covered the Arm64 side since he was fixing a different tracked issue |
Contributor
|
lgtm, thanks for adding the test |
dhartglassMSFT
approved these changes
Jul 17, 2026
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.
Adds a JIT regression test for the
'"'"'!"Write to unaliased local overlaps outstanding read"'"'"'assert (lir.cpp) reported in #124749, found by Fuzzlyn.The bug was already fixed by #128962.
fgOptimizeHWIntrinsicrewritesAdd(Neg(X), Y)toSub(Y, X), reversing operand evaluation order (for SIMD, negation isSubtract(0, X)). When CSE had planted aCOMMA(STORE cse_temp, use)def insideXand left a bareLCL_VAR cse_tempuse asY, the swap scheduled the use before its def, tripping the use-before-def assert during Rationalization. #128962 guards the transform withgtCanSwapOrder(op1, op2), which returnsfalsehere becauseop1carriesGTF_ASG(the store) whileop2is non-invariant.This just adds coverage; there is no product change.
Verification:
Program:M0()via SPMI replay at the collection'"'"'s compatible commit; backporting only thegtCanSwapOrderguard made it disappear.main, removing the guard and rebuildingclrjit.dllreproduced the assert through this repro; restoring it produced a clean run.I could not execute-verify locally as this machine lacks AVX512, so the test no-ops here, but the SPMI collection is this exact repro and validates it on AVX512 legs.
Closes #124749
Note
This PR description was drafted by Copilot.