mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 17:00:19 +02:00
x87OptimizationPass: Fixes {Inc,Dec}StackPop
On the slow path these were pushing and popping in the wrong direction. Switch them around to ensure the unittests work.
This commit is contained in:
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user