diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-11 16:17:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-11 16:17:12 +0000 |
commit | e11529438cd825935410750881f6dd6b04806db2 (patch) | |
tree | 34155162c08f9f16b7294152b75ab42979b582a9 /lib/Target | |
parent | 5b456e867b63d6b544d2eb7604164a3150005e1e (diff) | |
download | external_llvm-e11529438cd825935410750881f6dd6b04806db2.zip external_llvm-e11529438cd825935410750881f6dd6b04806db2.tar.gz external_llvm-e11529438cd825935410750881f6dd6b04806db2.tar.bz2 |
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
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/ARM/ARMISelLowering.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 6cefec9..219e4e1 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -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 |