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:
daacf22
)
arm has r+r*s and r+i addr modes, but no r+i+r*s addr modes.
author
Chris Lattner
<sabre@nondot.org>
Fri, 13 Apr 2007 06:50:55 +0000
(06:50 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 13 Apr 2007 06:50:55 +0000
(06:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35962
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 219e4e1437468994f37d34c10926ed455e279ce8..0cef4cce68f773deb1ff8ca232df0ee6b669a963 100644
(file)
--- a/
lib/Target/ARM/ARMISelLowering.cpp
+++ b/
lib/Target/ARM/ARMISelLowering.cpp
@@
-1370,8
+1370,12
@@
bool ARMTargetLowering::isLegalAddressingMode(const AddrMode &AM,
case 1:
if (Subtarget->isThumb())
return false;
-
+ // FALL THROUGH.
default:
+ // ARM doesn't support any R+R*scale+imm addr modes.
+ if (AM.BaseOffs)
+ return false;
+
int Scale = AM.Scale;
switch (getValueType(Ty)) {
default: return false;