Skip to content

Commit

Permalink
Deprecate code guarded by SUPPORT_DFP
Browse files Browse the repository at this point in the history
  • Loading branch information
fjeremic committed Apr 26, 2021
1 parent 265f871 commit ad3a5b2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 47 deletions.
5 changes: 0 additions & 5 deletions compiler/il/NodeUnions.hpp
Expand Up @@ -43,11 +43,6 @@ struct UnionedWithChildren

union
{
#ifdef SUPPORT_DFP
// Used to hold long double constatants
uint32_t _constData[4];
#endif

GlobalRegisterInfo _globalRegisterInfo;

// Offset to WCode literal pool for constants > 8 bytes
Expand Down
6 changes: 0 additions & 6 deletions compiler/optimizer/ValueNumberInfo.cpp
Expand Up @@ -376,9 +376,6 @@ bool TR_ValueNumberInfo::congruentNodes(TR::Node * node, TR::Node * entryNode)
#ifdef J9_PROJECT_SPECIFIC
case TR::DecimalFloat: isSame = (node->getInt() == entryNode->getInt()); break;
case TR::DecimalDouble: isSame = (node->getLongInt() == entryNode->getLongInt()); break;
#ifdef SUPPORT_DFP
case TR::DecimalLongDouble: isSame = (node->getLongDouble() == entryNode->getLongDouble()); break;
#endif
#endif
case TR::Address:isSame = (node->getAddress() == entryNode->getAddress()); break;
default:
Expand Down Expand Up @@ -572,9 +569,6 @@ void TR_ValueNumberInfo::initializeNode(TR::Node *node, int32_t &negativeValueNu
#ifdef J9_PROJECT_SPECIFIC
case TR::DecimalFloat: isSame = (node->getInt() == entryNode->getInt()); break;
case TR::DecimalDouble: isSame = (node->getLongInt() == entryNode->getLongInt()); break;
#ifdef SUPPORT_DFP
case TR::DecimalLongDouble: isSame = (node->getLongDouble() == entryNode->getLongDouble()); break;
#endif
#endif
case TR::Address:isSame = (node->getAddress() == entryNode->getAddress()); break;
default:
Expand Down
7 changes: 0 additions & 7 deletions compiler/ras/Tree.cpp
Expand Up @@ -262,13 +262,6 @@ TR_Debug::printLoadConst(TR::Node *node, TR_PrettyPrinterString& output)
output.append(" %g [" UINT64_PRINTF_FORMAT_HEX "]", node->getDouble(), node->getDouble(), node->getDoubleBits());
}
break;
#ifdef SUPPORT_DFP
case TR::DecimalLongDouble:
{
output.append(" %llg", node->getLongDouble());
}
break;
#endif
#endif
case TR::Address:
if (node->getAddress() == 0)
Expand Down
14 changes: 0 additions & 14 deletions compiler/z/codegen/SystemLinkageLinux.cpp
Expand Up @@ -488,22 +488,8 @@ TR::S390zLinuxSystemLinkage::callNativeFunction(TR::Node * callNode,
case TR::fcalli:
case TR::dcall:
case TR::dcalli:
#if defined(SUPPORT_DFP) && defined(J9_PROJECT_SPECIFIC)
case TR::dfcall:
case TR::dfcalli:
case TR::ddcall:
case TR::ddcalli:
#endif
returnRegister = deps->searchPostConditionRegister(getFloatReturnRegister());
break;
#if defined(SUPPORT_DFP) && defined(J9_PROJECT_SPECIFIC)
case TR::decall:
case TR::decalli:
highReg = deps->searchPostConditionRegister(getLongDoubleReturnRegister0());
lowReg = deps->searchPostConditionRegister(getLongDoubleReturnRegister2());
returnRegister = cg()->allocateFPRegisterPair(lowReg, highReg);
break;
#endif
case TR::call:
case TR::calli:
returnRegister = NULL;
Expand Down
15 changes: 0 additions & 15 deletions compiler/z/codegen/SystemLinkagezOS.cpp
Expand Up @@ -455,24 +455,9 @@ TR::S390zOSSystemLinkage::callNativeFunction(TR::Node * callNode, TR::RegisterDe
case TR::dcalli:
case TR::fcall:
case TR::dcall:
#if defined(SUPPORT_DFP) && defined(J9_PROJECT_SPECIFIC)
case TR::dfcalli:
case TR::ddcalli:
case TR::dfcall:
case TR::ddcall:
#endif
retReg = deps->searchPostConditionRegister(getFloatReturnRegister());
returnRegister = retReg;
break;
#if defined(SUPPORT_DFP) && defined(J9_PROJECT_SPECIFIC)
case TR::decall:
case TR::decalli:
highReg = deps->searchPostConditionRegister(getLongDoubleReturnRegister0());
lowReg = deps->searchPostConditionRegister(getLongDoubleReturnRegister2());
retReg = codeGen->allocateFPRegisterPair(lowReg, highReg);
returnRegister = retReg;
break;
#endif
case TR::calli:
case TR::call:
retReg = NULL;
Expand Down

0 comments on commit ad3a5b2

Please sign in to comment.