Skip to content

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.

@ghost ghost 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
@github-actions github-actions bot locked and limited conversation to collaborators Apr 25, 2025
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 community-contribution Indicates that the PR has been added by a community member
Projects
None yet
2 participants