1
0
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:
Chris Lattner 2007-04-13 06:50:55 +00:00
parent dedfc40044
commit e7cab7b7a4

View File

@ -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;