mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Fix incorrect fall-throughs in addr mode code. This fixes CodeGen/ARM/arm-negative-stride.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35909 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5b456e867b
commit
e11529438c
@ -1386,13 +1386,13 @@ bool ARMTargetLowering::isLegalAddressingMode(const AddrMode &AM,
|
||||
if (Scale == 1)
|
||||
return true;
|
||||
// r + r << imm
|
||||
if (!isPowerOf2_32(Scale & ~1))
|
||||
return false;
|
||||
return isPowerOf2_32(Scale & ~1);
|
||||
case MVT::i16:
|
||||
// r + r
|
||||
if (((unsigned)AM.HasBaseReg + Scale) <= 2)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
||||
case MVT::isVoid:
|
||||
// Note, we allow "void" uses (basically, uses that aren't loads or
|
||||
// stores), because arm allows folding a scale into many arithmetic
|
||||
|
Loading…
x
Reference in New Issue
Block a user