From 034b62292bb77d7531e23c88235728c58d9b9d59 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Mon, 28 Oct 2024 19:26:02 -0700 Subject: [PATCH] Passes/x86StackOptimization: Fixes implicit conversion of OpSize --- .../Source/Interface/IR/Passes/x87StackOptimizationPass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FEXCore/Source/Interface/IR/Passes/x87StackOptimizationPass.cpp b/FEXCore/Source/Interface/IR/Passes/x87StackOptimizationPass.cpp index 35e2f1fa7..4e542a9f5 100644 --- a/FEXCore/Source/Interface/IR/Passes/x87StackOptimizationPass.cpp +++ b/FEXCore/Source/Interface/IR/Passes/x87StackOptimizationPass.cpp @@ -816,10 +816,10 @@ void X87StackOptimization::Run(IREmitter* Emit) { default: ERROR_AND_DIE_FMT("Unsupported x87 size"); } } else { - if (Op->StoreSize != 10) { // if it's not 80bits then convert + if (Op->StoreSize != OpSize::f80Bit) { // if it's not 80bits then convert StackNode = IREmit->_F80CVT(Op->StoreSize, StackNode); } - if (Op->StoreSize == 10) { // Part of code from StoreResult_WithOpSize() + if (Op->StoreSize == OpSize::f80Bit) { // Part of code from StoreResult_WithOpSize() // For X87 extended doubles, split before storing IREmit->_StoreMem(FPRClass, OpSize::i64Bit, AddrNode, StackNode); auto Upper = IREmit->_VExtractToGPR(OpSize::i128Bit, OpSize::i64Bit, StackNode, 1);