Skip to content

Commit

Permalink
Fix FCOMPmem and FUCOMPmem (#507)
Browse files Browse the repository at this point in the history
* Fix FCOMPmem and FUCOMPmem

* Get rid of double pop
  • Loading branch information
DCNick3 authored Apr 16, 2021
1 parent a9c1c9d commit 3e31f2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Arch/X86/Semantics/X87.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1112,13 +1112,13 @@ DEF_FPU_SEM(FCOMP, RF80 src1, S2 src2) {
template <typename S2>
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 <typename S2>
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) {
Expand Down

0 comments on commit 3e31f2c

Please sign in to comment.