From: Chris Lattner Date: Wed, 11 Jan 2006 23:16:29 +0000 (+0000) Subject: Fix an off-by-one error that Nate's eagle eyes caught X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ba625726a1fc3b18b6a5386978d33f1943f5df84;p=oota-llvm.git Fix an off-by-one error that Nate's eagle eyes caught git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25231 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index 9801b4c896a..896c71b91a8 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -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 {