GenTreePtr Compiler::impImplicitR4orR8Cast(GenTreePtr tree,
var_types dstTyp)
{
-#ifdef _TARGET_64BIT_
+#ifndef LEGACY_BACKEND
if (varTypeIsFloating(tree) && varTypeIsFloating(dstTyp) && (dstTyp != tree->gtType))
{
tree = gtNewCastNode(dstTyp, tree, dstTyp);
}
-#endif // _TARGET_64BIT_
+#endif // !LEGACY_BACKEND
return tree;
}
{
arrayElem = typeInfo::nativeInt();
}
-#endif // _TARGET_64_BIT
+#endif // _TARGET_64BIT_
Verify(tiArray.IsNullObjRef() ||
typeInfo::AreEquivalent(verGetArrayElemType(tiArray), arrayElem), "bad array");
}
else
{
- // On Amd64 add an explicit cast between float and double
op2 = impImplicitR4orR8Cast(op2, op1->TypeGet());
op1 = gtNewAssignNode(op1, op2);
}
impBashVarAddrsToI(op1, op2);
- // On Amd64 add an explicit cast between float and double
op2 = impImplicitR4orR8Cast(op2, lclTyp);
#ifdef _TARGET_64BIT_