Uh oh!
There was an error while loading. Please reload this page.
Fix asserts that were always true due to a missed neg. - #44095
Conversation
sandreenko
commented
Nov 2, 2020
The assert is failing on |
tannergooding
commented
Nov 2, 2020
Will take a look, it's likely a simple fix. |
@sandreenko, I just added the following at L5467, just above the case NI_SSE2_ShiftLeftLogical128BitLane:
case NI_SSE2_ShiftRightLogical128BitLane:
case NI_AVX2_ShiftLeftLogical128BitLane:
case NI_AVX2_ShiftRightLogical128BitLane:
{
#if DEBUG
// These intrinsics should have been marked contained by the general-purpose handling earlier in the method.
GenTree* lastOp = HWIntrinsicInfo::lookupLastOp(node);
assert(lastOp != nullptr);
if (HWIntrinsicInfo::isImmOp(intrinsicId, lastOp) && lastOp->IsCnsIntOrI())
{
assert(lastOp->isContained());
}
#endifbreak;
}Do you want me to push a new commit directly to the PR or would you like to just cherry-pick the change (or some variant) yourself? |
sandreenko
commented
Nov 2, 2020
Please push your changes directly to this PR or you can open a new one and I will close this. |
…and marked contained
sandreenko
commented
Nov 3, 2020
Thanks @tannergooding for the fix. |
| case NI_AVX2_ShiftRightLogical128BitLane: | ||
| { | ||
| #if DEBUG | ||
| // These intrinsics should have been marked contained by the general-purpose handling earlier in the method. |
There was a problem hiding this comment.
This is causing CI to fail in the formatting job. It failed on this PR as well.
It took me a while to understand how in #43397 (comment) we did not fail on
assert("Unhandled containment for ternary hardware intrinsic with immediate operand");cc @janvorli