mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 05:13:01 +00:00
Fix obvious type-o
llvm-svn: 5932
This commit is contained in:
parent
5efddeb447
commit
38d40c0ea9
@ -443,7 +443,7 @@ UltraSparcInstrInfo::CreateCodeToLoadConst(const TargetMachine& target,
|
|||||||
|
|
||||||
if (opSize > destSize ||
|
if (opSize > destSize ||
|
||||||
(val->getType()->isSigned()
|
(val->getType()->isSigned()
|
||||||
&& destSize < target.getTargetData().getIntegerRegize()))
|
&& destSize < target.getTargetData().getIntegerRegSize()))
|
||||||
{ // operand is larger than dest,
|
{ // operand is larger than dest,
|
||||||
// OR both are equal but smaller than the full register size
|
// OR both are equal but smaller than the full register size
|
||||||
// AND operand is signed, so it may have extra sign bits:
|
// AND operand is signed, so it may have extra sign bits:
|
||||||
|
@ -759,7 +759,7 @@ CreateShiftInstructions(const TargetMachine& target,
|
|||||||
Value* shiftDest = destVal;
|
Value* shiftDest = destVal;
|
||||||
unsigned opSize = target.getTargetData().getTypeSize(argVal1->getType());
|
unsigned opSize = target.getTargetData().getTypeSize(argVal1->getType());
|
||||||
if ((shiftOpCode == SLL || shiftOpCode == SLLX)
|
if ((shiftOpCode == SLL || shiftOpCode == SLLX)
|
||||||
&& opSize < target.getTargetData().getIntegerRegize())
|
&& opSize < target.getTargetData().getIntegerRegSize())
|
||||||
{ // put SLL result into a temporary
|
{ // put SLL result into a temporary
|
||||||
shiftDest = new TmpInstruction(argVal1, optArgVal2, "sllTmp");
|
shiftDest = new TmpInstruction(argVal1, optArgVal2, "sllTmp");
|
||||||
mcfi.addTemp(shiftDest);
|
mcfi.addTemp(shiftDest);
|
||||||
@ -2305,7 +2305,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot,
|
|||||||
.addReg(dest, MOTy::Def);
|
.addReg(dest, MOTy::Def);
|
||||||
mvec.push_back(M);
|
mvec.push_back(M);
|
||||||
}
|
}
|
||||||
else if (destSize < target.getTargetData().getIntegerRegize())
|
else if (destSize < target.getTargetData().getIntegerRegSize())
|
||||||
assert(0 && "Unsupported type size: 32 < size < 64 bits");
|
assert(0 && "Unsupported type size: 32 < size < 64 bits");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user