mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 07:09:08 +00:00
remove some v9 specific code
llvm-svn: 27900
This commit is contained in:
parent
04a8496ef0
commit
829d8b5f7b
@ -38,26 +38,6 @@ TargetInstrInfo::~TargetInstrInfo() {
|
||||
TargetInstrDescriptors = NULL; // reset global variable
|
||||
}
|
||||
|
||||
// FIXME: SPARCV9 SPECIFIC!
|
||||
bool TargetInstrInfo::constantFitsInImmedField(MachineOpCode opCode,
|
||||
int64_t intValue) const {
|
||||
// First, check if opCode has an immed field.
|
||||
bool isSignExtended;
|
||||
uint64_t maxImmedValue = maxImmedConstant(opCode, isSignExtended);
|
||||
if (maxImmedValue != 0)
|
||||
{
|
||||
// NEED TO HANDLE UNSIGNED VALUES SINCE THEY MAY BECOME MUCH
|
||||
// SMALLER AFTER CASTING TO SIGN-EXTENDED int, short, or char.
|
||||
// See CreateUIntSetInstruction in SparcInstrInfo.cpp.
|
||||
|
||||
// Now check if the constant fits
|
||||
if (intValue <= (int64_t) maxImmedValue &&
|
||||
intValue >= -((int64_t) maxImmedValue+1))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// commuteInstruction - The default implementation of this method just exchanges
|
||||
// operand 1 and 2.
|
||||
|
Loading…
Reference in New Issue
Block a user