Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JIT: Fix asserts from #112728 #113845

Merged
merged 8 commits into from
Mar 25, 2025
Merged

JIT: Fix asserts from #112728 #113845

merged 8 commits into from
Mar 25, 2025

Conversation

saucecontrol
Copy link
Member

@saucecontrol saucecontrol commented Mar 24, 2025

Fixes #113829
Fixes #113832

Both asserts from #113829 were testing assumptions that should have been checked in the condition instead. Since casts from small types both have TYP_INT actual type, either byte or short args match the IR type for either overload of Vector###.Create, so an extra cast is needed when the sizes don't match.

#113832 is a case where BroadcastScalarToVector was allowed to contain CreateScalar([GT_LONG]). There was already a check that prevented containment of CreateScalarUnsafe of a decomposed long, and CreateScalar should have followed the same path.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Mar 24, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Mar 24, 2025
@saucecontrol
Copy link
Member Author

@jakobbotsch do any/all of these need regression tests? In hindsight, they were kind of obvious misses, but they don't have any test coverage outside Fuzzlyn.

@jakobbotsch
Copy link
Member

@jakobbotsch do any/all of these need regression tests? In hindsight, they were kind of obvious misses, but they don't have any test coverage outside Fuzzlyn.

It would be nice.

Copy link
Member

@jakobbotsch jakobbotsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@saucecontrol saucecontrol marked this pull request as ready for review March 25, 2025 03:34
@jakobbotsch
Copy link
Member

/ba-g Failures are azurelinux timeouts and #113877

@jakobbotsch jakobbotsch merged commit 122e701 into dotnet:main Mar 25, 2025
109 of 114 checks passed
@jakobbotsch
Copy link
Member

Thanks for the quick fixes.

@saucecontrol saucecontrol deleted the fix-112728 branch March 25, 2025 19:22
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 community-contribution Indicates that the PR has been added by a community member
Projects
None yet
2 participants