diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-26 19:44:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-26 19:44:35 +0000 |
commit | 7a5adc3ac0fd7acc32f7797aac33d51224c9a443 (patch) | |
tree | 12b24fe0d73321adef914c04b02560786e53847f /lib/Target/SparcV9/SparcV9InstrInfo.cpp | |
parent | 38f8c4520f03b40dc52ccaeb467dd0246bd3ac03 (diff) | |
download | external_llvm-7a5adc3ac0fd7acc32f7797aac33d51224c9a443.zip external_llvm-7a5adc3ac0fd7acc32f7797aac33d51224c9a443.tar.gz external_llvm-7a5adc3ac0fd7acc32f7797aac33d51224c9a443.tar.bz2 |
IntegerRegSize is always 8 for sparc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/SparcV9InstrInfo.cpp')
-rw-r--r-- | lib/Target/SparcV9/SparcV9InstrInfo.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrInfo.cpp b/lib/Target/SparcV9/SparcV9InstrInfo.cpp index 8bdb0f2..331fd46 100644 --- a/lib/Target/SparcV9/SparcV9InstrInfo.cpp +++ b/lib/Target/SparcV9/SparcV9InstrInfo.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: |