diff options
author | Mike Danes <onemihaid@hotmail.com> | 2017-12-28 16:03:22 +0200 |
---|---|---|
committer | Mike Danes <onemihaid@hotmail.com> | 2018-09-08 00:21:58 +0300 |
commit | 28305b5d566c3898fc0aa39e48f367fd1dc01cfb (patch) | |
tree | 3098a0dce02170016747017b797ec1128d28b740 /src/jit/lowerarmarch.cpp | |
parent | 1d00a61b95ce280886c252360851945937b273b7 (diff) | |
download | coreclr-28305b5d566c3898fc0aa39e48f367fd1dc01cfb.tar.gz coreclr-28305b5d566c3898fc0aa39e48f367fd1dc01cfb.tar.bz2 coreclr-28305b5d566c3898fc0aa39e48f367fd1dc01cfb.zip |
Move FP DIV/MUL handling to genCodeForBinary
Floating point (SSE) MUL/DIV instructions have the same formats as ADD/SUB but they're handled by genCodeForMul and genCodeForDivMod. At least in the case of division this results in duplicated logic being required in genCodeForDivMod.
Diffstat (limited to 'src/jit/lowerarmarch.cpp')
-rw-r--r-- | src/jit/lowerarmarch.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/jit/lowerarmarch.cpp b/src/jit/lowerarmarch.cpp index f91d0865d2..2ad167e28b 100644 --- a/src/jit/lowerarmarch.cpp +++ b/src/jit/lowerarmarch.cpp @@ -674,6 +674,19 @@ void Lowering::ContainCheckMul(GenTreeOp* node) } //------------------------------------------------------------------------ +// ContainCheckDivOrMod: determine which operands of a div/mod should be contained. +// +// Arguments: +// node - the node we care about +// +void Lowering::ContainCheckDivOrMod(GenTreeOp* node) +{ + assert(node->OperIs(GT_DIV, GT_UDIV)); + + // ARM doesn't have a div instruction with an immediate operand +} + +//------------------------------------------------------------------------ // ContainCheckShiftRotate: Determine whether a mul op's operands should be contained. // // Arguments: |