Skip to content

Commit

Permalink
Remove references of IL opcode TR::cadd and TR::csub
Browse files Browse the repository at this point in the history
Signed-off-by: Bohao(Aaron) Wang <aaronwang0407@gmail.com>
  • Loading branch information
wbh123456 committed Jul 4, 2019
1 parent 032930d commit 34d6a96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions compiler/il/OMRILOps.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,6 @@ class ILOpCode
{
switch(type)
{
case TR::Int16: return TR::cadd;
case TR::Int32: return TR::iuadd;
case TR::Int64: return TR::luadd;
case TR::Address: return (is64Bit) ? TR::aladd : TR::aiadd;
Expand Down Expand Up @@ -732,7 +731,6 @@ class ILOpCode
{
switch(type)
{
case TR::Int16: return TR::csub;
case TR::Int32: return TR::iusub;
case TR::Int64: return TR::lusub;
default: TR_ASSERT(0, "no unsigned sub opcode for this datatype");
Expand Down Expand Up @@ -1293,15 +1291,13 @@ class ILOpCode
case TR::dstorei:
return TR::vstorei;
case TR::badd:
case TR::cadd:
case TR::sadd:
case TR::iadd:
case TR::ladd:
case TR::fadd:
case TR::dadd:
return TR::vadd;
case TR::bsub:
case TR::csub:
case TR::ssub:
case TR::isub:
case TR::lsub:
Expand Down Expand Up @@ -1447,7 +1443,6 @@ template <> inline TR::ILOpCodes OMR::ILOpCode::getConstOpCode< double>() { ret
template <> inline TR::ILOpCodes OMR::ILOpCode::getConstOpCode< void*>() { return TR::aconst; }

template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode< int8_t>() { return TR::badd; }
template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode<uint16_t>() { return TR::cadd; }
template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode< int16_t>() { return TR::sadd; }
template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode<uint32_t>() { return TR::iuadd; }
template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode< int32_t>() { return TR::iadd; }
Expand All @@ -1457,7 +1452,6 @@ template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode< float>() { retur
template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode< double>() { return TR::dadd; }

template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode< int8_t>() { return TR::bsub; }
template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode<uint16_t>() { return TR::csub; }
template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode< int16_t>() { return TR::ssub; }
template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode<uint32_t>() { return TR::iusub; }
template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode< int32_t>() { return TR::isub; }
Expand Down
2 changes: 1 addition & 1 deletion compiler/x/codegen/BinaryEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1748,7 +1748,7 @@ TR::Register *OMR::X86::TreeEvaluator::csubEvaluator(TR::Node *node, TR::CodeGen

if (NEED_CC(node))
{
TR_ASSERT(node->getOpCodeValue() == TR::csub,
TR_ASSERT(false,
"CC computation not supported for this node %p with opcode %s\n", node, cg->comp()->getDebug()->getName(node->getOpCode()));

// we need eflags from integerAddAnalyser for the CC sequence
Expand Down

0 comments on commit 34d6a96

Please sign in to comment.