Fix an off-by-one error that Nate's eagle eyes caught
authorChris Lattner <sabre@nondot.org>
Wed, 11 Jan 2006 23:16:29 +0000 (23:16 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 11 Jan 2006 23:16:29 +0000 (23:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25231 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCRegisterInfo.cpp

index 9801b4c896a98bcc70efecb74dbd3c829fdbe216..896c71b91a82324fe71c650f69d87fefb3b2f483 100644 (file)
@@ -380,7 +380,7 @@ void PPCRegisterInfo::emitEpilogue(MachineFunction &MF,
     
     // The loaded (or persistent) stack pointer value is offseted by the 'stwu'
     // on entry to the function.  Add this offset back now.
-    if (NumBytes <= 32768) {
+    if (NumBytes < 32768) {
       BuildMI(MBB, MBBI, PPC::ADDI, 2, PPC::R1)
           .addReg(PPC::R1).addSImm(NumBytes);
     } else {