From 3e31f2c2889550dd3127c987c8dab9f40d777ee9 Mon Sep 17 00:00:00 2001 From: Nickie S Date: Fri, 16 Apr 2021 19:36:15 +0300 Subject: [PATCH] Fix FCOMPmem and FUCOMPmem (#507) * Fix FCOMPmem and FUCOMPmem * Get rid of double pop --- lib/Arch/X86/Semantics/X87.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Arch/X86/Semantics/X87.cpp b/lib/Arch/X86/Semantics/X87.cpp index 1e066de54..dee967571 100644 --- a/lib/Arch/X86/Semantics/X87.cpp +++ b/lib/Arch/X86/Semantics/X87.cpp @@ -1112,13 +1112,13 @@ DEF_FPU_SEM(FCOMP, RF80 src1, S2 src2) { template DEF_FPU_SEM(FUCOMPmem, RF80 src1, S2 src2) { SetFPUDp(src2); - return FUCOMPmem(memory, state, src1, src2, pc, fop); + return FUCOMP(memory, state, src1, src2, pc, fop); } template DEF_FPU_SEM(FCOMPmem, RF80 src1, S2 src2) { SetFPUDp(src2); - return FCOMPmem(memory, state, src1, src2, pc, fop); + return FCOMP(memory, state, src1, src2, pc, fop); } DEF_FPU_SEM(DoFUCOMPP) {