1
1
/* ******************************************************************************
2
- * Copyright (c) 2000, 2019 IBM Corp. and others
2
+ * Copyright (c) 2000, 2020 IBM Corp. and others
3
3
*
4
4
* This program and the accompanying materials are made available under
5
5
* the terms of the Eclipse Public License 2.0 which accompanies this
@@ -702,11 +702,11 @@ class ILOpCode
702
702
{
703
703
switch (type)
704
704
{
705
- case TR::Int8: return TR::buadd ;
706
- case TR::Int16: return TR::cadd ;
707
- case TR::Int32: return TR::iuadd ;
708
- case TR::Int64: return TR::luadd ;
709
- case TR::Address: return (is64Bit) ? TR::aladd : TR::aiadd;
705
+ case TR::Int8: return TR::badd ;
706
+ case TR::Int16: return TR::sadd ;
707
+ case TR::Int32: return TR::iadd ;
708
+ case TR::Int64: return TR::ladd ;
709
+ case TR::Address: return (is64Bit) ? TR::aladd : TR::aiadd;
710
710
default : TR_ASSERT (0 , " no add opcode for this datatype" );
711
711
}
712
712
return TR::BadILOp;
@@ -737,12 +737,9 @@ class ILOpCode
737
737
{
738
738
switch (type)
739
739
{
740
- case TR::Int8: return TR::busub;
741
- case TR::Int16: return TR::csub;
742
- case TR::Int32: return TR::iusub;
743
- case TR::Int64: return TR::lusub;
744
740
default : TR_ASSERT (0 , " no unsigned sub opcode for this datatype" );
745
741
}
742
+ TR_ASSERT_FATAL (0 , " all unsigned subtract opcode has been deprecated. (eclipse/omr#2657)" );
746
743
return TR::BadILOp;
747
744
}
748
745
@@ -910,15 +907,13 @@ class ILOpCode
910
907
switch (longOp)
911
908
{
912
909
case TR::ladd: return TR::iadd;
913
- case TR::luadd: return TR::iuadd ;
910
+ case TR::luadd: return TR::iadd ;
914
911
case TR::lsub: return TR::isub;
915
- case TR::lusub: return TR::iusub;
916
912
case TR::lmul: return TR::imul;
917
913
case TR::ldiv : return TR::idiv;
918
914
case TR::lrem: return TR::irem;
919
915
case TR::labs : return TR::iabs;
920
916
case TR::lneg: return TR::ineg;
921
- case TR::luneg: return TR::iuneg;
922
917
case TR::lshr: return TR::ishr;
923
918
case TR::lushr: return TR::iushr;
924
919
case TR::lshl: return TR::ishl;
@@ -1452,24 +1447,24 @@ template <> inline TR::ILOpCodes OMR::ILOpCode::getConstOpCode< float>() { ret
1452
1447
template <> inline TR::ILOpCodes OMR::ILOpCode::getConstOpCode< double >() { return TR::dconst; }
1453
1448
template <> inline TR::ILOpCodes OMR::ILOpCode::getConstOpCode< void *>() { return TR::aconst; }
1454
1449
1455
- template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode< uint8_t >() { return TR::buadd ; }
1450
+ template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode< uint8_t >() { return TR::badd ; }
1456
1451
template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode< int8_t >() { return TR::badd; }
1457
- template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode<uint16_t >() { return TR::cadd ; }
1452
+ template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode<uint16_t >() { return TR::sadd ; }
1458
1453
template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode< int16_t >() { return TR::sadd; }
1459
- template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode<uint32_t >() { return TR::iuadd ; }
1454
+ template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode<uint32_t >() { return TR::iadd ; }
1460
1455
template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode< int32_t >() { return TR::iadd; }
1461
- template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode<uint64_t >() { return TR::luadd ; }
1456
+ template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode<uint64_t >() { return TR::ladd ; }
1462
1457
template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode< int64_t >() { return TR::ladd; }
1463
1458
template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode< float >() { return TR::fadd; }
1464
1459
template <> inline TR::ILOpCodes OMR::ILOpCode::getAddOpCode< double >() { return TR::dadd; }
1465
1460
1466
- template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode< uint8_t >() { return TR::busub ; }
1461
+ template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode< uint8_t >() { return TR::bsub ; }
1467
1462
template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode< int8_t >() { return TR::bsub; }
1468
- template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode<uint16_t >() { return TR::csub ; }
1463
+ template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode<uint16_t >() { return TR::ssub ; }
1469
1464
template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode< int16_t >() { return TR::ssub; }
1470
- template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode<uint32_t >() { return TR::iusub ; }
1465
+ template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode<uint32_t >() { return TR::isub ; }
1471
1466
template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode< int32_t >() { return TR::isub; }
1472
- template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode<uint64_t >() { return TR::lusub ; }
1467
+ template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode<uint64_t >() { return TR::lsub ; }
1473
1468
template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode< int64_t >() { return TR::lsub; }
1474
1469
template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode< float >() { return TR::fsub; }
1475
1470
template <> inline TR::ILOpCodes OMR::ILOpCode::getSubOpCode< double >() { return TR::dsub; }
@@ -1485,9 +1480,9 @@ template <> inline TR::ILOpCodes OMR::ILOpCode::getMulOpCode< double>() { retur
1485
1480
1486
1481
template <> inline TR::ILOpCodes OMR::ILOpCode::getNegOpCode< int8_t >() { return TR::bneg; }
1487
1482
template <> inline TR::ILOpCodes OMR::ILOpCode::getNegOpCode< int16_t >() { return TR::sneg; }
1488
- template <> inline TR::ILOpCodes OMR::ILOpCode::getNegOpCode<uint32_t >() { return TR::iuneg ; }
1483
+ template <> inline TR::ILOpCodes OMR::ILOpCode::getNegOpCode<uint32_t >() { return TR::ineg ; }
1489
1484
template <> inline TR::ILOpCodes OMR::ILOpCode::getNegOpCode< int32_t >() { return TR::ineg; }
1490
- template <> inline TR::ILOpCodes OMR::ILOpCode::getNegOpCode<uint64_t >() { return TR::luneg ; }
1485
+ template <> inline TR::ILOpCodes OMR::ILOpCode::getNegOpCode<uint64_t >() { return TR::lneg ; }
1491
1486
template <> inline TR::ILOpCodes OMR::ILOpCode::getNegOpCode< int64_t >() { return TR::lneg; }
1492
1487
template <> inline TR::ILOpCodes OMR::ILOpCode::getNegOpCode< float >() { return TR::fneg; }
1493
1488
template <> inline TR::ILOpCodes OMR::ILOpCode::getNegOpCode< double >() { return TR::dneg; }
0 commit comments