summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/SparcInstrInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-26 19:44:35 +0000
committerChris Lattner <sabre@nondot.org>2003-04-26 19:44:35 +0000
commit21d4509d76581828c5e76eabdd15b446503a05d8 (patch)
tree2b1d69a06ee53623edbe9deb811e6684bec08d18 /llvm/lib/Target/Sparc/SparcInstrInfo.cpp
parente8689fd0526d05d49dceb06cbd8702dc6a78eb43 (diff)
downloadbcm5719-llvm-21d4509d76581828c5e76eabdd15b446503a05d8.tar.gz
bcm5719-llvm-21d4509d76581828c5e76eabdd15b446503a05d8.zip
IntegerRegSize is always 8 for sparc
llvm-svn: 5961
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/Sparc/SparcInstrInfo.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/SparcInstrInfo.cpp b/llvm/lib/Target/Sparc/SparcInstrInfo.cpp
index 8bdb0f29669..331fd4608dc 100644
--- a/llvm/lib/Target/Sparc/SparcInstrInfo.cpp
+++ b/llvm/lib/Target/Sparc/SparcInstrInfo.cpp
@@ -441,9 +441,7 @@ UltraSparcInstrInfo::CreateCodeToLoadConst(const TargetMachine& target,
uint64_t C = GetConstantValueAsUnsignedInt(val, isValidConstant);
assert(isValidConstant && "Unrecognized constant");
- if (opSize > destSize ||
- (val->getType()->isSigned()
- && destSize < target.getTargetData().getIntegerRegSize()))
+ if (opSize > destSize || (val->getType()->isSigned() && destSize < 8))
{ // operand is larger than dest,
// OR both are equal but smaller than the full register size
// AND operand is signed, so it may have extra sign bits:
OpenPOWER on IntegriCloud