projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d95816
)
Zero is always a legal AM immediate.
author
Evan Cheng
<evan.cheng@apple.com>
Tue, 13 Mar 2007 20:37:59 +0000
(20:37 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Tue, 13 Mar 2007 20:37:59 +0000
(20:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35087
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMISelLowering.cpp
b/lib/Target/ARM/ARMISelLowering.cpp
index 2038a3e3aefc196ac8d0673fcda69a50757fc063..f23d8aeb37eb447411e85732839e9b4de46e0caf 100644
(file)
--- a/
lib/Target/ARM/ARMISelLowering.cpp
+++ b/
lib/Target/ARM/ARMISelLowering.cpp
@@
-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)