mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-04 09:37:20 +00:00
Zero is always a legal AM immediate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1d95816db5
commit
961f879ed8
@ -1273,6 +1273,9 @@ ARMTargetLowering::InsertAtEndOfBasicBlock(MachineInstr *MI,
|
||||
/// as the offset of the target addressing mode for load / store of the
|
||||
/// given type.
|
||||
bool ARMTargetLowering::isLegalAddressImmediate(int64_t V,const Type *Ty) const{
|
||||
if (V == 0)
|
||||
return true;
|
||||
|
||||
MVT::ValueType VT = getValueType(Ty);
|
||||
if (Subtarget->isThumb()) {
|
||||
if (V < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user