-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
JIT: Fix asserts from #112728 #113845
Conversation
@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. |
src/tests/JIT/Regression/JitBlue/Runtime_113829/Runtime_113829.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/ba-g Failures are azurelinux timeouts and #113877 |
Thanks for the quick fixes. |
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 containCreateScalar([GT_LONG])
. There was already a check that prevented containment ofCreateScalarUnsafe
of a decomposed long, andCreateScalar
should have followed the same path.