Use unsigned comparison in segmented stack prologue.
[oota-llvm.git] / lib / Target / X86 / X86FrameLowering.cpp
index 058b39a1c7148740f7269947708a9184411ed7a1..fba4788d6a50e1a7848f2b45c02c769aadcd264e 100644 (file)
@@ -1405,7 +1405,7 @@ X86FrameLowering::adjustForSegmentedStacks(MachineFunction &MF) const {
 
   // This jump is taken if SP >= (Stacklet Limit + Stack Space required).
   // It jumps to normal execution of the function body.
-  BuildMI(checkMBB, DL, TII.get(X86::JG_4)).addMBB(&prologueMBB);
+  BuildMI(checkMBB, DL, TII.get(X86::JA_4)).addMBB(&prologueMBB);
 
   // On 32 bit we first push the arguments size and then the frame size. On 64
   // bit, we pass the stack frame size in r10 and the argument size in r11.