Thumb-2: fix typo that caused incorrect stack elimination for VFP operations and...
authorDavid Goodwin <david_goodwin@apple.com>
Tue, 28 Jul 2009 23:52:33 +0000 (23:52 +0000)
committerDavid Goodwin <david_goodwin@apple.com>
Tue, 28 Jul 2009 23:52:33 +0000 (23:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77401 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/Thumb2InstrInfo.cpp

index 0c31820f76f97405f4df393da9e21aff7f42e597..b3e5d7ea72b2adb543120e388ee0d88a35eadd38 100644 (file)
@@ -415,7 +415,7 @@ int llvm::rewriteT2FrameIndex(MachineInstr &MI, unsigned FrameRegIdx,
     }
       
     // Otherwise, offset doesn't fit. Pull in what we can to simplify
-    ImmedOffset = Offset & Mask;
+    ImmedOffset = ImmedOffset & Mask;
     if (isSub) {
       if (AddrMode == ARMII::AddrMode5)
         // FIXME: Not consistent.