Fix a bug in PPCTargetLowering::isLegalAddressingMode, scales other than 0/1/2

are always unsupported.

llvm-svn: 35835
This commit is contained in:
Chris Lattner 2007-04-09 22:10:05 +00:00
parent 6e6b2d493a
commit b4ef9c8be3

View File

@ -3389,6 +3389,9 @@ bool PPCTargetLowering::isLegalAddressingMode(const AddrMode &AM,
return false;
// Allow 2*r as r+r.
break;
default:
// No other scales are supported.
return false;
}
return true;