mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 10:00:16 +02:00
x87StackOptimizationPass: Set both operands as valid in the tag word for FXCH
This commit is contained in:
1 parent
45fbab212a
commit
e4e45bcc59
1 file changed
+2
-2
@@ -1074,8 +1074,8 @@ void X87StackOptimization::Run(IREmitter* Emit) {
|
|||||||
// Slow path: do actual memory operations
|
// Slow path: do actual memory operations
|
||||||
Ref ValueTop = LoadStackValue();
|
Ref ValueTop = LoadStackValue();
|
||||||
Ref ValueOffset = LoadStackValue(Offset);
|
Ref ValueOffset = LoadStackValue(Offset);
|
||||||
StoreStackValue(ValueOffset);
|
StoreStackValue(ValueOffset, 0, true);
|
||||||
StoreStackValue(ValueTop, Offset);
|
StoreStackValue(ValueTop, Offset, true);
|
||||||
} else {
|
} else {
|
||||||
// Fast path: swap complete StackMemberInfo preserving Source metadata
|
// Fast path: swap complete StackMemberInfo preserving Source metadata
|
||||||
StackData.setTop(StackMemberOffset, 0);
|
StackData.setTop(StackMemberOffset, 0);
|
||||||
|
|||||||
Reference in new issue
Block a user