mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
arm has r+r*s and r+i addr modes, but no r+i+r*s addr modes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35962 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
daacf22537
commit
5a3d40d88f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user