Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix arm32
  • Loading branch information
EgorBo committed Oct 30, 2021
commit eb100e18e77c3aab42db8566f41899130eb90675
2 changes: 2 additions & 0 deletions src/coreclr/jit/lowerarmarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1568,6 +1568,7 @@ void Lowering::ContainCheckBinary(GenTreeOp* node)
// Check and make op2 contained (if it is a containable immediate)
CheckImmedAndMakeContained(node, node->gtOp2);

#ifdef TARGET_ARM64
// Find "a * b + c" or "c + a * b" in order to emit MADD/MSUB
if (varTypeIsIntegral(node) && !node->isContained() && node->OperIs(GT_ADD) &&
(node->gtGetOp1()->OperIs(GT_MUL) || node->gtGetOp2()->OperIs(GT_MUL)))
Expand Down Expand Up @@ -1596,6 +1597,7 @@ void Lowering::ContainCheckBinary(GenTreeOp* node)
MakeSrcContained(node, mul);
}
}
#endif
}

//------------------------------------------------------------------------
Expand Down