mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 11:33:24 +02:00
arm has r+r*s and r+i addr modes, but no r+i+r*s addr modes.
llvm-svn: 35962
This commit is contained in:
parent
dedfc40044
commit
e7cab7b7a4
@ -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