mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-04 10:00:50 +00:00
Fix a bug in PPCTargetLowering::isLegalAddressingMode, scales other than 0/1/2
are always unsupported. llvm-svn: 35835
This commit is contained in:
parent
6e6b2d493a
commit
b4ef9c8be3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user