summaryrefslogtreecommitdiff
path: root/src/jit/lowerarmarch.cpp
diff options
context:
space:
mode:
authorMike Danes <onemihaid@hotmail.com>2017-12-28 16:03:22 +0200
committerMike Danes <onemihaid@hotmail.com>2018-09-08 00:21:58 +0300
commit28305b5d566c3898fc0aa39e48f367fd1dc01cfb (patch)
tree3098a0dce02170016747017b797ec1128d28b740 /src/jit/lowerarmarch.cpp
parent1d00a61b95ce280886c252360851945937b273b7 (diff)
downloadcoreclr-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.cpp13
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: