diff --git a/FEXCore/Source/Interface/IR/Passes/x87StackOptimizationPass.cpp b/FEXCore/Source/Interface/IR/Passes/x87StackOptimizationPass.cpp index 7b3ef5a37..1e8124463 100644 --- a/FEXCore/Source/Interface/IR/Passes/x87StackOptimizationPass.cpp +++ b/FEXCore/Source/Interface/IR/Passes/x87StackOptimizationPass.cpp @@ -1044,7 +1044,7 @@ void X87StackOptimization::Run(IREmitter* Emit) { case OP_INCSTACKTOP: { if (SlowPath) { - UpdateTopForPush_Slow(); + UpdateTopForPop_Slow(); } else { StackData.rotate(false); } @@ -1053,7 +1053,7 @@ void X87StackOptimization::Run(IREmitter* Emit) { case OP_DECSTACKTOP: { if (SlowPath) { - UpdateTopForPop_Slow(); + UpdateTopForPush_Slow(); } else { StackData.rotate(true); }