mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix a bug in PPCTargetLowering::isLegalAddressingMode, scales other than 0/1/2
are always unsupported. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35835 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
54e2b142be
commit
7c7ba9d2d5
@ -3389,6 +3389,9 @@ bool PPCTargetLowering::isLegalAddressingMode(const AddrMode &AM,
|
|||||||
return false;
|
return false;
|
||||||
// Allow 2*r as r+r.
|
// Allow 2*r as r+r.
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
// No other scales are supported.
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user